Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / services / gcm / gcm_event_router.h
blob48b109e980db5c5fb4e419933e6d5d6154611c9f
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_EVENT_ROUTER_H_
8 #include "base/basictypes.h"
9 #include "google_apis/gcm/gcm_client.h"
11 namespace gcm {
13 // Interface that encapsulates how various GCM events are routed.
14 class GCMEventRouter {
15 public:
16 virtual ~GCMEventRouter() {}
18 virtual void OnMessage(const std::string& app_id,
19 const GCMClient::IncomingMessage& message) = 0;
20 virtual void OnMessagesDeleted(const std::string& app_id) = 0;
21 virtual void OnSendError(const std::string& app_id,
22 const std::string& message_id,
23 GCMClient::Result result) = 0;
26 } // namespace gcm
28 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_EVENT_ROUTER_H_