| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GOOGLE_APIS_GCM_ENGINE_CONNECTION_FACTORY_IMPL_H_ | 5 #ifndef GOOGLE_APIS_GCM_ENGINE_CONNECTION_FACTORY_IMPL_H_ |
| 6 #define GOOGLE_APIS_GCM_ENGINE_CONNECTION_FACTORY_IMPL_H_ | 6 #define GOOGLE_APIS_GCM_ENGINE_CONNECTION_FACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include "google_apis/gcm/engine/connection_factory.h" | 8 #include "google_apis/gcm/engine/connection_factory.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "net/socket/client_socket_handle.h" | 23 #include "net/socket/client_socket_handle.h" |
| 24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 class HttpNetworkSession; | 27 class HttpNetworkSession; |
| 28 class NetLog; | 28 class NetLog; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace gcm { | 31 namespace gcm { |
| 32 | 32 |
| 33 class ConnectionHandlerImpl; | |
| 34 class GCMStatsRecorder; | 33 class GCMStatsRecorder; |
| 35 | 34 |
| 36 class GCM_EXPORT ConnectionFactoryImpl : | 35 class GCM_EXPORT ConnectionFactoryImpl : |
| 37 public ConnectionFactory, | 36 public ConnectionFactory, |
| 38 public net::NetworkChangeNotifier::NetworkChangeObserver { | 37 public net::NetworkChangeNotifier::NetworkChangeObserver { |
| 39 public: | 38 public: |
| 40 // |http_network_session| is an optional network session to use as a source | 39 // |http_network_session| is an optional network session to use as a source |
| 41 // for proxy auth credentials (via its HttpAuthCache). |gcm_network_session| | 40 // for proxy auth credentials (via its HttpAuthCache). |gcm_network_session| |
| 42 // is the network session through which GCM connections should be made, and | 41 // is the network session through which GCM connections should be made, and |
| 43 // must not be the same as |http_network_session|. | 42 // must not be the same as |http_network_session|. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 ConnectionListener* listener_; | 210 ConnectionListener* listener_; |
| 212 | 211 |
| 213 base::WeakPtrFactory<ConnectionFactoryImpl> weak_ptr_factory_; | 212 base::WeakPtrFactory<ConnectionFactoryImpl> weak_ptr_factory_; |
| 214 | 213 |
| 215 DISALLOW_COPY_AND_ASSIGN(ConnectionFactoryImpl); | 214 DISALLOW_COPY_AND_ASSIGN(ConnectionFactoryImpl); |
| 216 }; | 215 }; |
| 217 | 216 |
| 218 } // namespace gcm | 217 } // namespace gcm |
| 219 | 218 |
| 220 #endif // GOOGLE_APIS_GCM_ENGINE_CONNECTION_FACTORY_IMPL_H_ | 219 #endif // GOOGLE_APIS_GCM_ENGINE_CONNECTION_FACTORY_IMPL_H_ |
| OLD | NEW |