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

Unified Diff: sync/notifier/sync_system_resources.h

Issue 140513002: Client-to-server messages in GCMNetworkChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
Index: sync/notifier/sync_system_resources.h
diff --git a/sync/notifier/sync_system_resources.h b/sync/notifier/sync_system_resources.h
index 22fcb96c2cf15f7d5108c21cea31875654f68f06..14627c2487f2be9d66622b46be34ae9479eff0c9 100644
--- a/sync/notifier/sync_system_resources.h
+++ b/sync/notifier/sync_system_resources.h
@@ -26,6 +26,8 @@
namespace syncer {
+class GCMNetworkChannelDelegate;
+
class SyncLogger : public invalidation::Logger {
public:
SyncLogger();
@@ -123,7 +125,9 @@ class SYNC_EXPORT_PRIVATE SyncNetworkChannel
// specific parameters.
static scoped_ptr<SyncNetworkChannel> CreatePushClientChannel(
const notifier::NotifierOptions& notifier_options);
- static scoped_ptr<SyncNetworkChannel> CreateGCMNetworkChannel();
+ static scoped_ptr<SyncNetworkChannel> CreateGCMNetworkChannel(
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
+ scoped_ptr<GCMNetworkChannelDelegate> delegate);
const std::string& GetServiceContextForTest() const;
@@ -141,8 +145,8 @@ class SYNC_EXPORT_PRIVATE SyncNetworkChannel
int64* scheduling_hash);
protected:
- // Subclass should notify about connection state through NotifyStateChange.
- void NotifyStateChange(InvalidatorState invalidator_state);
+ // Subclass should notify about connection state through SetNetworkState.
+ void SetNetworkState(InvalidatorState invalidator_state);
rlarocque 2014/01/16 18:52:48 Is this change related to your efforts to make sta
pavely 2014/01/17 00:44:39 One scenario that I considered was to use this fun
// Subclass should call DeliverIncomingMessage for message to reach
// invalidations library.
void DeliverIncomingMessage(const std::string& message);

Powered by Google App Engine
This is Rietveld 408576698