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

Unified Diff: extensions/browser/extension_web_contents_observer.h

Issue 1035263002: Add service registration for Mojo services defined under chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: extensions/browser/extension_web_contents_observer.h
diff --git a/extensions/browser/extension_web_contents_observer.h b/extensions/browser/extension_web_contents_observer.h
index cd485605cc7e1145d888e2cda63503832c36a449..849851f4de4b32d2d26e326dbcaa568b85b775ad 100644
--- a/extensions/browser/extension_web_contents_observer.h
+++ b/extensions/browser/extension_web_contents_observer.h
@@ -53,6 +53,11 @@ class ExtensionWebContentsObserver : public content::WebContentsObserver {
// the empty string if the render view host is not for a valid extension.
static std::string GetExtensionId(content::RenderViewHost* render_view_host);
+ // Registers Mojo services with render_frame_host's ServiceRegistry.
+ // A subclass should invoke this method to register all Mojo services.
+ virtual void RegisterMojoServices(content::RenderFrameHost* render_frame_host,
+ const Extension* extension);
+
private:
// The BrowserContext associated with the WebContents being observed.
content::BrowserContext* browser_context_;

Powered by Google App Engine
This is Rietveld 408576698