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

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 6 years, 12 months 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
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service.cc ('k') | sync/notifier/gcm_network_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ac73b74f03d8f3bd1182cd91219190c29a968b3f
--- /dev/null
+++ b/sync/notifier/gcm_network_channel.h
@@ -0,0 +1,38 @@
+// 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:
+ DISALLOW_COPY_AND_ASSIGN(GCMNetworkChannel);
+};
+
+} // namespace syncer
+
+#endif // SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service.cc ('k') | sync/notifier/gcm_network_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698