| Index: google_apis/gcm/engine/connection_factory_impl.h
|
| diff --git a/google_apis/gcm/engine/connection_factory_impl.h b/google_apis/gcm/engine/connection_factory_impl.h
|
| index 31cecf688414bca0514d6a7c6bc3a22bcef79278..80fbc94ea8c073ceb6caa0408e0bbb8c84f9d6ba 100644
|
| --- a/google_apis/gcm/engine/connection_factory_impl.h
|
| +++ b/google_apis/gcm/engine/connection_factory_impl.h
|
| @@ -29,8 +29,7 @@ class GCMStatsRecorder;
|
|
|
| class GCM_EXPORT ConnectionFactoryImpl :
|
| public ConnectionFactory,
|
| - public net::NetworkChangeNotifier::ConnectionTypeObserver,
|
| - public net::NetworkChangeNotifier::IPAddressObserver {
|
| + public net::NetworkChangeNotifier::NetworkChangeObserver {
|
| public:
|
| ConnectionFactoryImpl(
|
| const std::vector<GURL>& mcs_endpoints,
|
| @@ -53,10 +52,9 @@ class GCM_EXPORT ConnectionFactoryImpl :
|
| virtual void SignalConnectionReset(ConnectionResetReason reason) OVERRIDE;
|
| virtual void SetConnectionListener(ConnectionListener* listener) OVERRIDE;
|
|
|
| - // NetworkChangeNotifier observer implementations.
|
| - virtual void OnConnectionTypeChanged(
|
| + // NetworkChangeObserver implementation.
|
| + virtual void OnNetworkChanged(
|
| net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
|
| - virtual void OnIPAddressChanged() OVERRIDE;
|
|
|
| // Returns the server to which the factory is currently connected, or if
|
| // a connection is currently pending, the server to which the next connection
|
| @@ -149,6 +147,11 @@ class GCM_EXPORT ConnectionFactoryImpl :
|
| // expiration.
|
| bool waiting_for_backoff_;
|
|
|
| + // Whether the NetworkChangeNotifier has informed the client that there is
|
| + // no current connection. No connection attempts will be made until the
|
| + // client is informed of a valid connection type.
|
| + bool waiting_for_network_online_;
|
| +
|
| // Whether login successfully completed after the connection was established.
|
| // If a connection reset happens while attempting to log in, the current
|
| // backoff entry is reused (after incrementing with a new failure).
|
|
|