blob: 7d3b08ce0b3ba70afdff8fc2e175edf07bef183f [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_WEBAPPS_RENDERER_WEB_PAGE_METADATA_EXTRACTION_H_
#define COMPONENTS_WEBAPPS_RENDERER_WEB_PAGE_METADATA_EXTRACTION_H_
#include "components/webapps/common/web_page_metadata.mojom-forward.h"
namespace blink {
class WebLocalFrame;
}
namespace webapps {
// Extracts any metadata information out of the document in the |frame|. Note,
// this function always returns a non-null object even if no metadata was found
// in the page.
mojom::WebPageMetadataPtr ExtractWebPageMetadata(blink::WebLocalFrame* frame);
} // namespace webapps
#endif // COMPONENTS_WEBAPPS_RENDERER_WEB_PAGE_METADATA_EXTRACTION_H_