summaryrefslogtreecommitdiffstats
path: root/components/gcm_driver/gcm_app_handler.h
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-09 17:13:06 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-09 17:13:06 +0000
commitcd57f378f4658d100bee327fc2152815a0a0e178 (patch)
treeb3d6811257f05368c787a252dedeac6e866cab91 /components/gcm_driver/gcm_app_handler.h
parent7d3c069e49e2cd35eea5cc6f94ba889ecb29d878 (diff)
downloadchromium_src-cd57f378f4658d100bee327fc2152815a0a0e178.zip
chromium_src-cd57f378f4658d100bee327fc2152815a0a0e178.tar.gz
chromium_src-cd57f378f4658d100bee327fc2152815a0a0e178.tar.bz2
Move GCMClient related files to gcm_driver component
GCMActivity, GCMClient, GCMClientImpl and GCMStatsRecorderImpl have been moved to gcm_driver component. This allows us to remove the dependency on google_apis/gcm for Android GCM support. BUG=353786,356716 TEST=existing tests due to no functionality change R=fgorski@chromium.org, zea@chromium.org TBR=arv@chromium.org, kalman@chromium.org, pavely@chromium.org Review URL: https://codereview.chromium.org/310973002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275826 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/gcm_driver/gcm_app_handler.h')
-rw-r--r--components/gcm_driver/gcm_app_handler.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/components/gcm_driver/gcm_app_handler.h b/components/gcm_driver/gcm_app_handler.h
index f1487a7..31bab34 100644
--- a/components/gcm_driver/gcm_app_handler.h
+++ b/components/gcm_driver/gcm_app_handler.h
@@ -1,42 +1,42 @@
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_GCM_DRIVER_GCM_APP_HANDLER_H_
-#define COMPONENTS_GCM_DRIVER_GCM_APP_HANDLER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "google_apis/gcm/gcm_client.h"
-
-namespace gcm {
-
-// Defines the interface to provide handling and event routing logic for a given
-// app.
-class GCMAppHandler {
- public:
- GCMAppHandler() {}
- virtual ~GCMAppHandler() {}
-
- // Called to do all the cleanup when GCM is shutting down.
- // In the case that multiple apps share the same app handler, it should be
- // make safe for ShutdownHandler to be called multiple times.
- virtual void ShutdownHandler() = 0;
-
- // Called when a GCM message has been received.
- virtual void OnMessage(const std::string& app_id,
- const GCMClient::IncomingMessage& message) = 0;
-
- // Called when some GCM messages have been deleted from the server.
- virtual void OnMessagesDeleted(const std::string& app_id) = 0;
-
- // Called when a GCM message failed to be delivered.
- virtual void OnSendError(
- const std::string& app_id,
- const GCMClient::SendErrorDetails& send_error_details) = 0;
-};
-
-} // namespace gcm
-
-#endif // COMPONENTS_GCM_DRIVER_GCM_APP_HANDLER_H_
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_GCM_DRIVER_GCM_APP_HANDLER_H_
+#define COMPONENTS_GCM_DRIVER_GCM_APP_HANDLER_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "components/gcm_driver/gcm_client.h"
+
+namespace gcm {
+
+// Defines the interface to provide handling and event routing logic for a given
+// app.
+class GCMAppHandler {
+ public:
+ GCMAppHandler() {}
+ virtual ~GCMAppHandler() {}
+
+ // Called to do all the cleanup when GCM is shutting down.
+ // In the case that multiple apps share the same app handler, it should be
+ // make safe for ShutdownHandler to be called multiple times.
+ virtual void ShutdownHandler() = 0;
+
+ // Called when a GCM message has been received.
+ virtual void OnMessage(const std::string& app_id,
+ const GCMClient::IncomingMessage& message) = 0;
+
+ // Called when some GCM messages have been deleted from the server.
+ virtual void OnMessagesDeleted(const std::string& app_id) = 0;
+
+ // Called when a GCM message failed to be delivered.
+ virtual void OnSendError(
+ const std::string& app_id,
+ const GCMClient::SendErrorDetails& send_error_details) = 0;
+};
+
+} // namespace gcm
+
+#endif // COMPONENTS_GCM_DRIVER_GCM_APP_HANDLER_H_