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

Unified Diff: sync/notifier/gcm_network_channel.h

Issue 215073005: Notify cacheinvalidations about network status (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 | « sync/notifier/DEPS ('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
index 9fc63649063fc90b3bfe7e6d94449305357d02d0..b2b8d6cc323ce37d8b4fde8bf6354313ca611361 100644
--- a/sync/notifier/gcm_network_channel.h
+++ b/sync/notifier/gcm_network_channel.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "net/base/backoff_entry.h"
+#include "net/base/network_change_notifier.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "sync/base/sync_export.h"
#include "sync/notifier/gcm_network_channel_delegate.h"
@@ -48,6 +49,7 @@ struct GCMNetworkChannelDiagnostic {
class SYNC_EXPORT_PRIVATE GCMNetworkChannel
: public SyncNetworkChannel,
public net::URLFetcherDelegate,
+ public net::NetworkChangeNotifier::NetworkChangeObserver,
public base::NonThreadSafe {
public:
GCMNetworkChannel(
@@ -70,6 +72,10 @@ class SYNC_EXPORT_PRIVATE GCMNetworkChannel
// URLFetcherDelegate implementation.
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
+ // NetworkChangeObserver implementation.
+ virtual void OnNetworkChanged(
+ net::NetworkChangeNotifier::ConnectionType connection_type) OVERRIDE;
+
protected:
void ResetRegisterBackoffEntryForTest(
const net::BackoffEntry::Policy* policy);
« no previous file with comments | « sync/notifier/DEPS ('k') | sync/notifier/gcm_network_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698