| OLD | NEW |
| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void Initialize( | 86 void Initialize( |
| 87 const ChromeBuildInfo& chrome_build_info, | 87 const ChromeBuildInfo& chrome_build_info, |
| 88 const base::FilePath& store_path, | 88 const base::FilePath& store_path, |
| 89 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, | 89 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, |
| 90 const scoped_refptr<net::URLRequestContextGetter>& | 90 const scoped_refptr<net::URLRequestContextGetter>& |
| 91 url_request_context_getter, | 91 url_request_context_getter, |
| 92 scoped_ptr<Encryptor> encryptor, | 92 scoped_ptr<Encryptor> encryptor, |
| 93 GCMClient::Delegate* delegate) override; | 93 GCMClient::Delegate* delegate) override; |
| 94 void Start() override; | 94 void Start() override; |
| 95 void Stop() override; | 95 void Stop() override; |
| 96 void CheckOut() override; | |
| 97 void Register(const std::string& app_id, | 96 void Register(const std::string& app_id, |
| 98 const std::vector<std::string>& sender_ids) override; | 97 const std::vector<std::string>& sender_ids) override; |
| 99 void Unregister(const std::string& app_id) override; | 98 void Unregister(const std::string& app_id) override; |
| 100 void Send(const std::string& app_id, | 99 void Send(const std::string& app_id, |
| 101 const std::string& receiver_id, | 100 const std::string& receiver_id, |
| 102 const OutgoingMessage& message) override; | 101 const OutgoingMessage& message) override; |
| 103 void SetRecording(bool recording) override; | 102 void SetRecording(bool recording) override; |
| 104 void ClearActivityLogs() override; | 103 void ClearActivityLogs() override; |
| 105 GCMStatistics GetStatistics() const override; | 104 GCMStatistics GetStatistics() const override; |
| 106 void SetAccountTokens( | 105 void SetAccountTokens( |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 323 |
| 325 // Factory for creating references in callbacks. | 324 // Factory for creating references in callbacks. |
| 326 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 325 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
| 327 | 326 |
| 328 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 327 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
| 329 }; | 328 }; |
| 330 | 329 |
| 331 } // namespace gcm | 330 } // namespace gcm |
| 332 | 331 |
| 333 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 332 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
| OLD | NEW |