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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 checkin_proto::ChromeBuildProto& chrome_build_proto, | 84 const checkin_proto::ChromeBuildProto& chrome_build_proto, |
85 const base::FilePath& store_path, | 85 const base::FilePath& store_path, |
86 const std::vector<std::string>& account_ids, | 86 const std::vector<std::string>& account_ids, |
87 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, | 87 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, |
88 const scoped_refptr<net::URLRequestContextGetter>& | 88 const scoped_refptr<net::URLRequestContextGetter>& |
89 url_request_context_getter, | 89 url_request_context_getter, |
| 90 scoped_ptr<Encryptor> encryptor, |
90 GCMClient::Delegate* delegate) OVERRIDE; | 91 GCMClient::Delegate* delegate) OVERRIDE; |
91 virtual void Start() OVERRIDE; | 92 virtual void Start() OVERRIDE; |
92 virtual void Stop() OVERRIDE; | 93 virtual void Stop() OVERRIDE; |
93 virtual void CheckOut() OVERRIDE; | 94 virtual void CheckOut() OVERRIDE; |
94 virtual void Register(const std::string& app_id, | 95 virtual void Register(const std::string& app_id, |
95 const std::vector<std::string>& sender_ids) OVERRIDE; | 96 const std::vector<std::string>& sender_ids) OVERRIDE; |
96 virtual void Unregister(const std::string& app_id) OVERRIDE; | 97 virtual void Unregister(const std::string& app_id) OVERRIDE; |
97 virtual void Send(const std::string& app_id, | 98 virtual void Send(const std::string& app_id, |
98 const std::string& receiver_id, | 99 const std::string& receiver_id, |
99 const OutgoingMessage& message) OVERRIDE; | 100 const OutgoingMessage& message) OVERRIDE; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 292 |
292 // Factory for creating references in callbacks. | 293 // Factory for creating references in callbacks. |
293 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 294 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
294 | 295 |
295 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 296 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
296 }; | 297 }; |
297 | 298 |
298 } // namespace gcm | 299 } // namespace gcm |
299 | 300 |
300 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ | 301 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ |
OLD | NEW |