Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: content/public/browser/web_contents.h

Issue 537053002: Implement ManifestManager to handle manifest in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_fetcher
Patch Set: with tests Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 80766dcb6ee4aa9765fb8eff1266f966c3a7d5bd..de1ac560239f454871c264b28b6af5a1c37928ad 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -57,6 +57,7 @@ class SiteInstance;
class WebContentsDelegate;
struct CustomContextMenuContext;
struct DropData;
+struct Manifest;
struct RendererPreferences;
// WebContents is the core class in content/. A WebContents renders web content
@@ -576,6 +577,11 @@ class WebContents : public PageNavigator,
// Requests the renderer to insert CSS into the main frame's document.
virtual void InsertCSS(const std::string& css) = 0;
+ typedef base::Callback<void(const Manifest&)> GetManifestCallback;
+
+ // Requests the Manifest of the main frame's document.
+ virtual void GetManifest(const GetManifestCallback&) = 0;
+
#if defined(OS_ANDROID)
CONTENT_EXPORT static WebContents* FromJavaWebContents(
jobject jweb_contents_android);

Powered by Google App Engine
This is Rietveld 408576698