| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 GCMAppHandler* handler) override; | 68 GCMAppHandler* handler) override; |
| 69 void RemoveAppHandler(const std::string& app_id) override; | 69 void RemoveAppHandler(const std::string& app_id) override; |
| 70 void AddConnectionObserver(GCMConnectionObserver* observer) override; | 70 void AddConnectionObserver(GCMConnectionObserver* observer) override; |
| 71 void RemoveConnectionObserver(GCMConnectionObserver* observer) override; | 71 void RemoveConnectionObserver(GCMConnectionObserver* observer) override; |
| 72 void Enable() override; | 72 void Enable() override; |
| 73 void Disable() override; | 73 void Disable() override; |
| 74 GCMClient* GetGCMClientForTesting() const override; | 74 GCMClient* GetGCMClientForTesting() const override; |
| 75 bool IsStarted() const override; | 75 bool IsStarted() const override; |
| 76 bool IsConnected() const override; | 76 bool IsConnected() const override; |
| 77 void GetGCMStatistics(const GetGCMStatisticsCallback& callback, | 77 void GetGCMStatistics(const GetGCMStatisticsCallback& callback, |
| 78 bool clear_logs) override; | 78 ClearActivityLogs clear_logs) override; |
| 79 void SetGCMRecording(const GetGCMStatisticsCallback& callback, | 79 void SetGCMRecording(const GetGCMStatisticsCallback& callback, |
| 80 bool recording) override; | 80 bool recording) override; |
| 81 void SetAccountTokens( | 81 void SetAccountTokens( |
| 82 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) override; | 82 const std::vector<GCMClient::AccountTokenInfo>& account_tokens) override; |
| 83 void UpdateAccountMapping(const AccountMapping& account_mapping) override; | 83 void UpdateAccountMapping(const AccountMapping& account_mapping) override; |
| 84 void RemoveAccountMapping(const std::string& account_id) override; | 84 void RemoveAccountMapping(const std::string& account_id) override; |
| 85 base::Time GetLastTokenFetchTime() override; | 85 base::Time GetLastTokenFetchTime() override; |
| 86 void SetLastTokenFetchTime(const base::Time& time) override; | 86 void SetLastTokenFetchTime(const base::Time& time) override; |
| 87 void WakeFromSuspendForHeartbeat(bool wake) override; | 87 void WakeFromSuspendForHeartbeat(bool wake) override; |
| 88 InstanceIDHandler* GetInstanceIDHandler() override; | 88 InstanceIDHandler* GetInstanceIDHandler() override; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 // Used to pass a weak pointer to the IO worker. | 236 // Used to pass a weak pointer to the IO worker. |
| 237 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; | 237 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; |
| 238 | 238 |
| 239 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); | 239 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 } // namespace gcm | 242 } // namespace gcm |
| 243 | 243 |
| 244 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 244 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
| OLD | NEW |