web_page_metadata_extraction.h 793 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_WEBAPPS_RENDERER_WEB_PAGE_METADATA_EXTRACTION_H_
  5. #define COMPONENTS_WEBAPPS_RENDERER_WEB_PAGE_METADATA_EXTRACTION_H_
  6. #include "components/webapps/common/web_page_metadata.mojom-forward.h"
  7. namespace blink {
  8. class WebLocalFrame;
  9. }
  10. namespace webapps {
  11. // Extracts any metadata information out of the document in the |frame|. Note,
  12. // this function always returns a non-null object even if no metadata was found
  13. // in the page.
  14. mojom::WebPageMetadataPtr ExtractWebPageMetadata(blink::WebLocalFrame* frame);
  15. } // namespace webapps
  16. #endif // COMPONENTS_WEBAPPS_RENDERER_WEB_PAGE_METADATA_EXTRACTION_H_