| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const ChromeBuildInfo& chrome_build_info, | 109 const ChromeBuildInfo& chrome_build_info, |
| 110 const base::FilePath& store_path, | 110 const base::FilePath& store_path, |
| 111 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, | 111 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, |
| 112 const scoped_refptr<net::URLRequestContextGetter>& | 112 const scoped_refptr<net::URLRequestContextGetter>& |
| 113 url_request_context_getter, | 113 url_request_context_getter, |
| 114 std::unique_ptr<Encryptor> encryptor, | 114 std::unique_ptr<Encryptor> encryptor, |
| 115 GCMClient::Delegate* delegate) override; | 115 GCMClient::Delegate* delegate) override; |
| 116 void Start(StartMode start_mode) override; | 116 void Start(StartMode start_mode) override; |
| 117 void Stop() override; | 117 void Stop() override; |
| 118 void Register(const linked_ptr<RegistrationInfo>& registration_info) override; | 118 void Register(const linked_ptr<RegistrationInfo>& registration_info) override; |
| 119 bool ValidateRegistration( |
| 120 const linked_ptr<RegistrationInfo>& registration_info, |
| 121 const std::string& registration_id) override; |
| 119 void Unregister( | 122 void Unregister( |
| 120 const linked_ptr<RegistrationInfo>& registration_info) override; | 123 const linked_ptr<RegistrationInfo>& registration_info) override; |
| 121 void Send(const std::string& app_id, | 124 void Send(const std::string& app_id, |
| 122 const std::string& receiver_id, | 125 const std::string& receiver_id, |
| 123 const OutgoingMessage& message) override; | 126 const OutgoingMessage& message) override; |
| 124 void RecordDecryptionFailure(const std::string& app_id, | 127 void RecordDecryptionFailure(const std::string& app_id, |
| 125 GCMEncryptionProvider::DecryptionResult result) | 128 GCMEncryptionProvider::DecryptionResult result) |
| 126 override; | 129 override; |
| 127 void SetRecording(bool recording) override; | 130 void SetRecording(bool recording) override; |
| 128 void ClearActivityLogs() override; | 131 void ClearActivityLogs() override; |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 404 |
| 402 // Factory for creating references in callbacks. | 405 // Factory for creating references in callbacks. |
| 403 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 406 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
| 404 | 407 |
| 405 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 408 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
| 406 }; | 409 }; |
| 407 | 410 |
| 408 } // namespace gcm | 411 } // namespace gcm |
| 409 | 412 |
| 410 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 413 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
| OLD | NEW |