Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: components/gcm_driver/gcm_driver_desktop.h

Issue 324913004: Skeleton GCMAppHandler for Push API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698