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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: sync/notifier/gcm_network_channel.h
diff --git a/sync/notifier/gcm_network_channel.h b/sync/notifier/gcm_network_channel.h
new file mode 100644
index 0000000000000000000000000000000000000000..2028415203d3cbb3af369a3dba397830417d3aa2
--- /dev/null
+++ b/sync/notifier/gcm_network_channel.h
@@ -0,0 +1,39 @@
+// Copyright 2012 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 SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
+#define SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "sync/base/sync_export.h"
+#include "sync/notifier/sync_system_resources.h"
+
+namespace syncer {
+
+// GCMNetworkChannel is an implementation of SyncNetworkChannel that routes
+// messages through GCMProfileService.
+class SYNC_EXPORT_PRIVATE GCMNetworkChannel
+ : public SyncNetworkChannel {
+ public:
+ explicit GCMNetworkChannel();
+
+ virtual ~GCMNetworkChannel();
+
+ // SyncNetworkChannel implementation.
+ virtual void SendEncodedMessage(const std::string& encoded_message) OVERRIDE;
+ virtual void UpdateCredentials(const std::string& email,
+ const std::string& token) OVERRIDE;
+
+ private:
+
rlarocque 2014/01/02 18:56:11 nit: remove unnecessary newline.
pavely 2014/01/03 00:33:25 Done.
+ DISALLOW_COPY_AND_ASSIGN(GCMNetworkChannel);
+};
+
+} // namespace syncer
+
+#endif // SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_

Powered by Google App Engine
This is Rietveld 408576698