| 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_DESKTOP_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void SetGCMRecording(const GetGCMStatisticsCallback& callback, | 78 void SetGCMRecording(const GetGCMStatisticsCallback& callback, |
| 79 bool recording) override; | 79 bool recording) override; |
| 80 void SetAccountTokens( | 80 void SetAccountTokens( |
| 81 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) override; | 81 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) override; |
| 82 void UpdateAccountMapping(const AccountMapping& account_mapping) override; | 82 void UpdateAccountMapping(const AccountMapping& account_mapping) override; |
| 83 void RemoveAccountMapping(const std::string& account_id) override; | 83 void RemoveAccountMapping(const std::string& account_id) override; |
| 84 base::Time GetLastTokenFetchTime() override; | 84 base::Time GetLastTokenFetchTime() override; |
| 85 void SetLastTokenFetchTime(const base::Time& time) override; | 85 void SetLastTokenFetchTime(const base::Time& time) override; |
| 86 void WakeFromSuspendForHeartbeat(bool wake) override; | 86 void WakeFromSuspendForHeartbeat(bool wake) override; |
| 87 InstanceIDStore* GetInstanceIDStore() override; | 87 InstanceIDStore* GetInstanceIDStore() override; |
| 88 void AddHeartbeatInterval(const std::string& scope, int interval_ms) override; |
| 89 void RemoveHeartbeatInterval(const std::string& scope) override; |
| 88 | 90 |
| 89 // InstanceIDStore overrides: | 91 // InstanceIDStore overrides: |
| 90 void AddInstanceIDData(const std::string& app_id, | 92 void AddInstanceIDData(const std::string& app_id, |
| 91 const std::string& instance_id_data) override; | 93 const std::string& instance_id_data) override; |
| 92 void RemoveInstanceIDData(const std::string& app_id) override; | 94 void RemoveInstanceIDData(const std::string& app_id) override; |
| 93 void GetInstanceIDData(const std::string& app_id, | 95 void GetInstanceIDData(const std::string& app_id, |
| 94 const GetInstanceIDDataCallback& callback) override; | 96 const GetInstanceIDDataCallback& callback) override; |
| 95 | 97 |
| 96 // Exposed for testing purpose. | 98 // Exposed for testing purpose. |
| 97 bool gcm_enabled() const { return gcm_enabled_; } | 99 bool gcm_enabled() const { return gcm_enabled_; } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 191 |
| 190 // Used to pass a weak pointer to the IO worker. | 192 // Used to pass a weak pointer to the IO worker. |
| 191 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; | 193 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; |
| 192 | 194 |
| 193 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); | 195 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); |
| 194 }; | 196 }; |
| 195 | 197 |
| 196 } // namespace gcm | 198 } // namespace gcm |
| 197 | 199 |
| 198 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 200 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
| OLD | NEW |