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_DRIVER_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_ |
6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 // Platform-specific implementation of UnregisterWithSenderId. | 250 // Platform-specific implementation of UnregisterWithSenderId. |
251 virtual void UnregisterWithSenderIdImpl(const std::string& app_id, | 251 virtual void UnregisterWithSenderIdImpl(const std::string& app_id, |
252 const std::string& sender_id); | 252 const std::string& sender_id); |
253 | 253 |
254 // Platform-specific implementation of Send. | 254 // Platform-specific implementation of Send. |
255 virtual void SendImpl(const std::string& app_id, | 255 virtual void SendImpl(const std::string& app_id, |
256 const std::string& receiver_id, | 256 const std::string& receiver_id, |
257 const OutgoingMessage& message) = 0; | 257 const OutgoingMessage& message) = 0; |
258 | 258 |
| 259 // Platform-specific implementation of recording message decryption failures. |
| 260 virtual void RecordDecryptionFailure( |
| 261 const std::string& app_id, |
| 262 GCMEncryptionProvider::DecryptionFailure reason) = 0; |
| 263 |
259 // Runs the Register callback. | 264 // Runs the Register callback. |
260 void RegisterFinished(const std::string& app_id, | 265 void RegisterFinished(const std::string& app_id, |
261 const std::string& registration_id, | 266 const std::string& registration_id, |
262 GCMClient::Result result); | 267 GCMClient::Result result); |
263 | 268 |
264 // Runs the Unregister callback. | 269 // Runs the Unregister callback. |
265 void UnregisterFinished(const std::string& app_id, | 270 void UnregisterFinished(const std::string& app_id, |
266 GCMClient::Result result); | 271 GCMClient::Result result); |
267 | 272 |
268 // Runs the Send callback. | 273 // Runs the Send callback. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 DefaultGCMAppHandler default_app_handler_; | 321 DefaultGCMAppHandler default_app_handler_; |
317 | 322 |
318 base::WeakPtrFactory<GCMDriver> weak_ptr_factory_; | 323 base::WeakPtrFactory<GCMDriver> weak_ptr_factory_; |
319 | 324 |
320 DISALLOW_COPY_AND_ASSIGN(GCMDriver); | 325 DISALLOW_COPY_AND_ASSIGN(GCMDriver); |
321 }; | 326 }; |
322 | 327 |
323 } // namespace gcm | 328 } // namespace gcm |
324 | 329 |
325 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_ | 330 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_ |
OLD | NEW |