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

Unified Diff: components/invalidation/gcm_network_channel_delegate.h

Issue 348503002: Report InvalidatorState correctly from GCMNetworkChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@GCM.ConnectionState
Patch Set: Rebase Created 6 years, 6 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: components/invalidation/gcm_network_channel_delegate.h
diff --git a/components/invalidation/gcm_network_channel_delegate.h b/components/invalidation/gcm_network_channel_delegate.h
index 3f89304382783ebd1055a78fccdd0d7eb4bd0523..c1626a6de5a8c1f7b765385a8de60b8f32cb278a 100644
--- a/components/invalidation/gcm_network_channel_delegate.h
+++ b/components/invalidation/gcm_network_channel_delegate.h
@@ -24,19 +24,13 @@ namespace syncer {
// thread and callbacks should be invoked there as well.
class GCMNetworkChannelDelegate {
public:
- enum ConnectionState {
- CONNECTION_STATE_OFFLINE,
- CONNECTION_STATE_ONLINE
- };
-
typedef base::Callback<void(const GoogleServiceAuthError& error,
const std::string& token)> RequestTokenCallback;
typedef base::Callback<void(const std::string& registration_id,
gcm::GCMClient::Result result)> RegisterCallback;
typedef base::Callback<void(const std::string& message,
const std::string& echo_token)> MessageCallback;
- typedef base::Callback<void(ConnectionState connection_state)>
- ConnectionStateCallback;
+ typedef base::Callback<void(bool online)> ConnectionStateCallback;
virtual ~GCMNetworkChannelDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698