| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const scoped_refptr<net::URLRequestContextGetter>& request_context, | 55 const scoped_refptr<net::URLRequestContextGetter>& request_context, |
| 56 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, | 56 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, |
| 57 const scoped_refptr<base::SequencedTaskRunner>& io_thread, | 57 const scoped_refptr<base::SequencedTaskRunner>& io_thread, |
| 58 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); | 58 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); |
| 59 ~GCMDriverDesktop() override; | 59 ~GCMDriverDesktop() override; |
| 60 | 60 |
| 61 // GCMDriver overrides: | 61 // GCMDriver overrides: |
| 62 void Shutdown() override; | 62 void Shutdown() override; |
| 63 void OnSignedIn() override; | 63 void OnSignedIn() override; |
| 64 void OnSignedOut() override; | 64 void OnSignedOut() override; |
| 65 void Purge() override; | |
| 66 void AddAppHandler(const std::string& app_id, | 65 void AddAppHandler(const std::string& app_id, |
| 67 GCMAppHandler* handler) override; | 66 GCMAppHandler* handler) override; |
| 68 void RemoveAppHandler(const std::string& app_id) override; | 67 void RemoveAppHandler(const std::string& app_id) override; |
| 69 void AddConnectionObserver(GCMConnectionObserver* observer) override; | 68 void AddConnectionObserver(GCMConnectionObserver* observer) override; |
| 70 void RemoveConnectionObserver(GCMConnectionObserver* observer) override; | 69 void RemoveConnectionObserver(GCMConnectionObserver* observer) override; |
| 71 void Enable() override; | 70 void Enable() override; |
| 72 void Disable() override; | 71 void Disable() override; |
| 73 GCMClient* GetGCMClientForTesting() const override; | 72 GCMClient* GetGCMClientForTesting() const override; |
| 74 bool IsStarted() const override; | 73 bool IsStarted() const override; |
| 75 bool IsConnected() const override; | 74 bool IsConnected() const override; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 176 |
| 178 // Used to pass a weak pointer to the IO worker. | 177 // Used to pass a weak pointer to the IO worker. |
| 179 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; | 178 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; |
| 180 | 179 |
| 181 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); | 180 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); |
| 182 }; | 181 }; |
| 183 | 182 |
| 184 } // namespace gcm | 183 } // namespace gcm |
| 185 | 184 |
| 186 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 185 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
| OLD | NEW |