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

Side by Side Diff: sync/notifier/gcm_network_channel.h

Issue 116533006: Control invalidations network channel from TiclInvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698