| 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 "components/gcm_driver/gcm_driver.h" | 10 #include "components/gcm_driver/gcm_driver.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 base::Time GetLastTokenFetchTime() override; | 41 base::Time GetLastTokenFetchTime() override; |
| 42 void SetLastTokenFetchTime(const base::Time& time) override; | 42 void SetLastTokenFetchTime(const base::Time& time) override; |
| 43 void WakeFromSuspendForHeartbeat(bool wake) override; | 43 void WakeFromSuspendForHeartbeat(bool wake) override; |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 // GCMDriver implementation: | 46 // GCMDriver implementation: |
| 47 GCMClient::Result EnsureStarted( | 47 GCMClient::Result EnsureStarted( |
| 48 GCMClient::StartMode start_mode) override; | 48 GCMClient::StartMode start_mode) override; |
| 49 void RegisterImpl(const std::string& app_id, | 49 void RegisterImpl(const std::string& app_id, |
| 50 const std::vector<std::string>& sender_ids) override; | 50 const std::vector<std::string>& sender_ids) override; |
| 51 void UnregisterImpl(const std::string& app_id) override; | 51 void UnregisterImpl(const std::string& app_id, |
| 52 const std::string* maybe_sender_id) override; |
| 52 void SendImpl(const std::string& app_id, | 53 void SendImpl(const std::string& app_id, |
| 53 const std::string& receiver_id, | 54 const std::string& receiver_id, |
| 54 const GCMClient::OutgoingMessage& message) override; | 55 const GCMClient::OutgoingMessage& message) override; |
| 55 | 56 |
| 56 private: | 57 private: |
| 57 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); | 58 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace gcm | 61 } // namespace gcm |
| 61 | 62 |
| 62 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ | 63 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ |
| OLD | NEW |