Chromium Code Reviews| 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_FAKE_GCM_DRIVER_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 const std::vector<std::string>& sender_ids) override; | 57 const std::vector<std::string>& sender_ids) override; |
| 58 void UnregisterImpl(const std::string& app_id) override; | 58 void UnregisterImpl(const std::string& app_id) override; |
| 59 void SendImpl(const std::string& app_id, | 59 void SendImpl(const std::string& app_id, |
| 60 const std::string& receiver_id, | 60 const std::string& receiver_id, |
| 61 const OutgoingMessage& message) override; | 61 const OutgoingMessage& message) override; |
| 62 void RecordDecryptionFailure(const std::string& app_id, | 62 void RecordDecryptionFailure(const std::string& app_id, |
| 63 GCMEncryptionProvider::DecryptionResult result) | 63 GCMEncryptionProvider::DecryptionResult result) |
| 64 override; | 64 override; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 void DoSendMessageReceipt(const MessageReceiptCallback& callback, | |
|
Peter Beverloo
2017/02/08 17:09:08
// GCMDriver implementation:
harkness
2017/02/09 16:27:29
Done.
| |
| 68 GCMMessageStatus status) override; | |
| 67 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); | 69 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 } // namespace gcm | 72 } // namespace gcm |
| 71 | 73 |
| 72 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 74 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
| OLD | NEW |