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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // IdentityProvider::Observer implementation: | 53 // IdentityProvider::Observer implementation: |
54 virtual void OnActiveAccountLogin() OVERRIDE; | 54 virtual void OnActiveAccountLogin() OVERRIDE; |
55 virtual void OnActiveAccountLogout() OVERRIDE; | 55 virtual void OnActiveAccountLogout() OVERRIDE; |
56 | 56 |
57 // GCMDriver overrides: | 57 // GCMDriver overrides: |
58 virtual void Shutdown() OVERRIDE; | 58 virtual void Shutdown() OVERRIDE; |
59 virtual void AddAppHandler(const std::string& app_id, | 59 virtual void AddAppHandler(const std::string& app_id, |
60 GCMAppHandler* handler) OVERRIDE; | 60 GCMAppHandler* handler) OVERRIDE; |
61 virtual void RemoveAppHandler(const std::string& app_id) OVERRIDE; | 61 virtual void RemoveAppHandler(const std::string& app_id) OVERRIDE; |
| 62 virtual void AddWildcardAppHandler(GCMWildcardAppHandler* handler) OVERRIDE; |
| 63 virtual void RemoveWildcardAppHandler( |
| 64 GCMWildcardAppHandler* handler) OVERRIDE; |
62 | 65 |
63 // GCMDriver implementation: | 66 // GCMDriver implementation: |
64 virtual void Enable() OVERRIDE; | 67 virtual void Enable() OVERRIDE; |
65 virtual void Disable() OVERRIDE; | 68 virtual void Disable() OVERRIDE; |
66 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE; | 69 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE; |
67 virtual bool IsStarted() const OVERRIDE; | 70 virtual bool IsStarted() const OVERRIDE; |
68 virtual bool IsGCMClientReady() const OVERRIDE; | 71 virtual bool IsGCMClientReady() const OVERRIDE; |
69 virtual void GetGCMStatistics(const GetGCMStatisticsCallback& callback, | 72 virtual void GetGCMStatistics(const GetGCMStatisticsCallback& callback, |
70 bool clear_logs) OVERRIDE; | 73 bool clear_logs) OVERRIDE; |
71 virtual void SetGCMRecording(const GetGCMStatisticsCallback& callback, | 74 virtual void SetGCMRecording(const GetGCMStatisticsCallback& callback, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 141 |
139 // Used to pass a weak pointer to the IO worker. | 142 // Used to pass a weak pointer to the IO worker. |
140 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; | 143 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; |
141 | 144 |
142 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); | 145 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); |
143 }; | 146 }; |
144 | 147 |
145 } // namespace gcm | 148 } // namespace gcm |
146 | 149 |
147 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ | 150 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ |
OLD | NEW |