OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2012 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. | |
4 | |
5 #ifndef SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_ | |
6 #define SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "sync/base/sync_export.h" | |
14 #include "sync/notifier/sync_system_resources.h" | |
15 | |
16 namespace syncer { | |
17 | |
18 // GCMNetworkChannel is an implementation of SyncNetworkChannel that routes | |
19 // messages through GCMProfileService. | |
20 class SYNC_EXPORT_PRIVATE GCMNetworkChannel | |
21 : public SyncNetworkChannel { | |
22 public: | |
23 explicit GCMNetworkChannel(); | |
24 | |
25 virtual ~GCMNetworkChannel(); | |
26 | |
27 // SyncNetworkChannel implementation. | |
28 virtual void SendEncodedMessage(const std::string& encoded_message) OVERRIDE; | |
29 virtual void UpdateCredentials(const std::string& email, | |
30 const std::string& token) OVERRIDE; | |
31 | |
32 private: | |
33 | |
rlarocque
2014/01/02 18:56:11
nit: remove unnecessary newline.
pavely
2014/01/03 00:33:25
Done.
| |
34 DISALLOW_COPY_AND_ASSIGN(GCMNetworkChannel); | |
35 }; | |
36 | |
37 } // namespace syncer | |
38 | |
39 #endif // SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_ | |
OLD | NEW |