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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 scoped_ptr<Encryptor> encryptor, | 112 scoped_ptr<Encryptor> encryptor, |
113 GCMClient::Delegate* delegate) override; | 113 GCMClient::Delegate* delegate) override; |
114 void Start(StartMode start_mode) override; | 114 void Start(StartMode start_mode) override; |
115 void Stop() override; | 115 void Stop() override; |
116 void Register(const linked_ptr<RegistrationInfo>& registration_info) override; | 116 void Register(const linked_ptr<RegistrationInfo>& registration_info) override; |
117 void Unregister( | 117 void Unregister( |
118 const linked_ptr<RegistrationInfo>& registration_info) override; | 118 const linked_ptr<RegistrationInfo>& registration_info) override; |
119 void Send(const std::string& app_id, | 119 void Send(const std::string& app_id, |
120 const std::string& receiver_id, | 120 const std::string& receiver_id, |
121 const OutgoingMessage& message) override; | 121 const OutgoingMessage& message) override; |
| 122 void RecordDecryptionFailure(const std::string& app_id, |
| 123 GCMEncryptionProvider::DecryptionFailure reason) |
| 124 override; |
122 void SetRecording(bool recording) override; | 125 void SetRecording(bool recording) override; |
123 void ClearActivityLogs() override; | 126 void ClearActivityLogs() override; |
124 GCMStatistics GetStatistics() const override; | 127 GCMStatistics GetStatistics() const override; |
125 void SetAccountTokens( | 128 void SetAccountTokens( |
126 const std::vector<AccountTokenInfo>& account_tokens) override; | 129 const std::vector<AccountTokenInfo>& account_tokens) override; |
127 void UpdateAccountMapping(const AccountMapping& account_mapping) override; | 130 void UpdateAccountMapping(const AccountMapping& account_mapping) override; |
128 void RemoveAccountMapping(const std::string& account_id) override; | 131 void RemoveAccountMapping(const std::string& account_id) override; |
129 void SetLastTokenFetchTime(const base::Time& time) override; | 132 void SetLastTokenFetchTime(const base::Time& time) override; |
130 void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) override; | 133 void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) override; |
131 void AddInstanceIDData(const std::string& app_id, | 134 void AddInstanceIDData(const std::string& app_id, |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 377 |
375 // Factory for creating references in callbacks. | 378 // Factory for creating references in callbacks. |
376 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; | 379 base::WeakPtrFactory<GCMClientImpl> weak_ptr_factory_; |
377 | 380 |
378 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 381 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
379 }; | 382 }; |
380 | 383 |
381 } // namespace gcm | 384 } // namespace gcm |
382 | 385 |
383 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ | 386 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_IMPL_H_ |
OLD | NEW |