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"
13 // Interface that encapsulates how various GCM events are routed.
14 class GCMEventRouter
{
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;
28 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_EVENT_ROUTER_H_