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

Side by Side Diff: components/gcm_driver/gcm_client_impl.h

Issue 330733002: Move IdentityProvider usage from GCMDriverDesktop to GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ 6 #define COMPONENTS_GCM_DRIVER_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 class GCMClientImpl 76 class GCMClientImpl
77 : public GCMClient, public GCMStatsRecorder::Delegate { 77 : public GCMClient, public GCMStatsRecorder::Delegate {
78 public: 78 public:
79 explicit GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder); 79 explicit GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder);
80 virtual ~GCMClientImpl(); 80 virtual ~GCMClientImpl();
81 81
82 // Overridden from GCMClient: 82 // Overridden from GCMClient:
83 virtual void Initialize( 83 virtual void Initialize(
84 const ChromeBuildInfo& chrome_build_info, 84 const ChromeBuildInfo& chrome_build_info,
85 const base::FilePath& store_path, 85 const base::FilePath& store_path,
86 const std::vector<std::string>& account_ids,
87 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, 86 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner,
88 const scoped_refptr<net::URLRequestContextGetter>& 87 const scoped_refptr<net::URLRequestContextGetter>&
89 url_request_context_getter, 88 url_request_context_getter,
90 scoped_ptr<Encryptor> encryptor, 89 scoped_ptr<Encryptor> encryptor,
91 GCMClient::Delegate* delegate) OVERRIDE; 90 GCMClient::Delegate* delegate) OVERRIDE;
92 virtual void Start() OVERRIDE; 91 virtual void Start() OVERRIDE;
93 virtual void Stop() OVERRIDE; 92 virtual void Stop() OVERRIDE;
94 virtual void CheckOut() OVERRIDE; 93 virtual void CheckOut() OVERRIDE;
95 virtual void Register(const std::string& app_id, 94 virtual void Register(const std::string& app_id,
96 const std::vector<std::string>& sender_ids) OVERRIDE; 95 const std::vector<std::string>& sender_ids) OVERRIDE;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 256
258 scoped_refptr<net::HttpNetworkSession> network_session_; 257 scoped_refptr<net::HttpNetworkSession> network_session_;
259 net::BoundNetLog net_log_; 258 net::BoundNetLog net_log_;
260 scoped_ptr<ConnectionFactory> connection_factory_; 259 scoped_ptr<ConnectionFactory> connection_factory_;
261 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 260 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
262 261
263 // Controls receiving and sending of packets and reliable message queueing. 262 // Controls receiving and sending of packets and reliable message queueing.
264 scoped_ptr<MCSClient> mcs_client_; 263 scoped_ptr<MCSClient> mcs_client_;
265 264
266 scoped_ptr<CheckinRequest> checkin_request_; 265 scoped_ptr<CheckinRequest> checkin_request_;
267 std::vector<std::string> account_ids_;
268 266
269 // Cached registration info. 267 // Cached registration info.
270 RegistrationInfoMap registrations_; 268 RegistrationInfoMap registrations_;
271 269
272 // Currently pending registration requests. GCMClientImpl owns the 270 // Currently pending registration requests. GCMClientImpl owns the
273 // RegistrationRequests. 271 // RegistrationRequests.
274 PendingRegistrationRequests pending_registration_requests_; 272 PendingRegistrationRequests pending_registration_requests_;
275 STLValueDeleter<PendingRegistrationRequests> 273 STLValueDeleter<PendingRegistrationRequests>
276 pending_registration_requests_deleter_; 274 pending_registration_requests_deleter_;
277 275
(...skipping 14 matching lines...) Expand all
292 290
293 // Factory for creating references in callbacks. 291 // Factory for creating references in callbacks.
294 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; 292 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_;
295 293
296 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); 294 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl);
297 }; 295 };
298 296
299 } // namespace gcm 297 } // namespace gcm
300 298
301 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ 299 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698