| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_GCM_CLIENT_IMPL_H_ | 5 #ifndef GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ |
| 6 #define GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ | 6 #define GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual scoped_ptr<MCSClient> BuildMCSClient( | 56 virtual scoped_ptr<MCSClient> BuildMCSClient( |
| 57 const std::string& version, | 57 const std::string& version, |
| 58 base::Clock* clock, | 58 base::Clock* clock, |
| 59 ConnectionFactory* connection_factory, | 59 ConnectionFactory* connection_factory, |
| 60 GCMStore* gcm_store, | 60 GCMStore* gcm_store, |
| 61 GCMStatsRecorder* recorder); | 61 GCMStatsRecorder* recorder); |
| 62 virtual scoped_ptr<ConnectionFactory> BuildConnectionFactory( | 62 virtual scoped_ptr<ConnectionFactory> BuildConnectionFactory( |
| 63 const std::vector<GURL>& endpoints, | 63 const std::vector<GURL>& endpoints, |
| 64 const net::BackoffEntry::Policy& backoff_policy, | 64 const net::BackoffEntry::Policy& backoff_policy, |
| 65 scoped_refptr<net::HttpNetworkSession> network_session, | 65 scoped_refptr<net::HttpNetworkSession> network_session, |
| 66 net::NetLog* net_log); | 66 net::NetLog* net_log, |
| 67 GCMStatsRecorder* recorder); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 // Implements the GCM Client. It is used to coordinate MCS Client (communication | 70 // Implements the GCM Client. It is used to coordinate MCS Client (communication |
| 70 // with MCS) and other pieces of GCM infrastructure like Registration and | 71 // with MCS) and other pieces of GCM infrastructure like Registration and |
| 71 // Checkins. It also allows for registering user delegates that host | 72 // Checkins. It also allows for registering user delegates that host |
| 72 // applications that send and receive messages. | 73 // applications that send and receive messages. |
| 73 class GCM_EXPORT GCMClientImpl : public GCMClient { | 74 class GCM_EXPORT GCMClientImpl : public GCMClient { |
| 74 public: | 75 public: |
| 75 explicit GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder); | 76 explicit GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder); |
| 76 virtual ~GCMClientImpl(); | 77 virtual ~GCMClientImpl(); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 271 |
| 271 // Factory for creating references in callbacks. | 272 // Factory for creating references in callbacks. |
| 272 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 273 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
| 273 | 274 |
| 274 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 275 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
| 275 }; | 276 }; |
| 276 | 277 |
| 277 } // namespace gcm | 278 } // namespace gcm |
| 278 | 279 |
| 279 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ | 280 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ |
| OLD | NEW |