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

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

Issue 317823007: Hook PushMessagingMessageFilter up to GCMDriver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 d1e3bf56fa0c4e4f158f5ba1e71bc72700578d67..27b78549a81de31b671500fdd27808415c0138f1 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -93,6 +93,7 @@ class DevToolsManagerDelegate;
class ExternalVideoSurfaceContainer;
class LocationProvider;
class MediaObserver;
+class PushMessagingService;
class QuotaPermissionContext;
class RenderFrameHost;
class RenderProcessHost;
@@ -504,6 +505,13 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual SpeechRecognitionManagerDelegate*
GetSpeechRecognitionManagerDelegate();
+ // Allows the embedder to provide an implementation of PushMessagingService.
+ // Ownership is not transferred to the caller; instead the caller will assume
+ // the service lifetime exceeds that of RenderProcessHost.
+ // It's valid to return NULL.
+ virtual PushMessagingService* CreatePushMessagingService(
+ BrowserContext* browser_context);
+
// Getters for common objects.
virtual net::NetLog* GetNetLog();

Powered by Google App Engine
This is Rietveld 408576698