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

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 6da43c333166b7691eb7337088db5b0da45b070d..e00fd88e6e5a8eb356c858ae80d87ade941944cc 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