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

Unified Diff: components/gcm_driver/gcm_app_handler.h

Issue 324913004: Skeleton GCMAppHandler for Push API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile 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: components/gcm_driver/gcm_app_handler.h
diff --git a/components/gcm_driver/gcm_app_handler.h b/components/gcm_driver/gcm_app_handler.h
index 31bab34d8905a19e5d36fd75ac13fc25dd642a13..84189080817f759cb33154777ee575e1bd1d965c 100644
--- a/components/gcm_driver/gcm_app_handler.h
+++ b/components/gcm_driver/gcm_app_handler.h
@@ -37,6 +37,18 @@ class GCMAppHandler {
const GCMClient::SendErrorDetails& send_error_details) = 0;
};
+class GCMWildcardAppHandler : public GCMAppHandler {
+ public:
+ GCMWildcardAppHandler() {}
+ virtual ~GCMWildcardAppHandler() {}
+
+ // If no ordinary app handler has been added with the exact app_id of an
+ // incoming event, all GCMWildcardAppHandlers will be asked (in arbitrary
+ // order) whether they can handle the app_id, and the first to return true
+ // will receive the event.
+ virtual bool CanHandle(const std::string& app_id) const = 0;
+};
+
} // namespace gcm
#endif // COMPONENTS_GCM_DRIVER_GCM_APP_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698