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

Unified Diff: components/gcm_driver/gcm_driver.h

Issue 338363003: Push API: register PushMessagingServiceImpl as GCMAppHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Address review issues. 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
« no previous file with comments | « components/gcm_driver/gcm_app_handler.cc ('k') | components/gcm_driver/gcm_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_driver.h
diff --git a/components/gcm_driver/gcm_driver.h b/components/gcm_driver/gcm_driver.h
index 40e18666881027ee0236277df2f914f333401664..69d7756c4c4769df1fcb97da5380dbeed661c2a6 100644
--- a/components/gcm_driver/gcm_driver.h
+++ b/components/gcm_driver/gcm_driver.h
@@ -81,6 +81,9 @@ class GCMDriver {
// Remove the handler for a given app.
virtual void RemoveAppHandler(const std::string& app_id);
+ // Returns the handler for the given app.
+ GCMAppHandler* GetAppHandler(const std::string& app_id);
+
// Enables/disables GCM service.
virtual void Enable() = 0;
virtual void Disable() = 0;
@@ -141,9 +144,6 @@ class GCMDriver {
void ClearCallbacks();
- // Returns the handler for the given app.
- GCMAppHandler* GetAppHandler(const std::string& app_id);
-
private:
// Should be called when an app with |app_id| is trying to un/register.
// Checks whether another un/registration is in progress.
« no previous file with comments | « components/gcm_driver/gcm_app_handler.cc ('k') | components/gcm_driver/gcm_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698