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

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

Issue 2259903002: Enforce capability spec renderer <--> browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index d22a4866c6164a40879e6ae05e492906391c19b3..182c6cf6c6cdf4aa20132d497274f2a356f0a9ee 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -717,6 +717,13 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual void RegisterMojoApplicationManifests(
MojoApplicationManifestMap* manifests) {}
+ // Allow the embedder to provide a dictionary loaded from a JSON file
+ // resembling a service manifest whose capabilities section will be merged
+ // with content's own for |name|. Additional entries will be appended to their
+ // respective sections.
+ virtual std::unique_ptr<base::Value> GetServiceManifestOverlay(
+ const std::string& name);
+
// Allows to override the visibility state of a RenderFrameHost.
// |visibility_state| should not be null. It will only be set if needed.
virtual void OverridePageVisibilityState(

Powered by Google App Engine
This is Rietveld 408576698