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

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

Issue 617003005: Keep the GCM data intact when the user signs out of the profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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
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 const base::FilePath& store_path, 52 const base::FilePath& store_path,
53 const scoped_refptr<net::URLRequestContextGetter>& request_context, 53 const scoped_refptr<net::URLRequestContextGetter>& request_context,
54 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, 54 const scoped_refptr<base::SequencedTaskRunner>& ui_thread,
55 const scoped_refptr<base::SequencedTaskRunner>& io_thread, 55 const scoped_refptr<base::SequencedTaskRunner>& io_thread,
56 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); 56 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner);
57 virtual ~GCMDriverDesktop(); 57 virtual ~GCMDriverDesktop();
58 58
59 // GCMDriver overrides: 59 // GCMDriver overrides:
60 virtual void Shutdown() override; 60 virtual void Shutdown() override;
61 virtual void OnSignedIn() override; 61 virtual void OnSignedIn() override;
62 virtual void OnSignedOut() override;
62 virtual void Purge() override; 63 virtual void Purge() override;
63 virtual void AddAppHandler(const std::string& app_id, 64 virtual void AddAppHandler(const std::string& app_id,
64 GCMAppHandler* handler) override; 65 GCMAppHandler* handler) override;
65 virtual void RemoveAppHandler(const std::string& app_id) override; 66 virtual void RemoveAppHandler(const std::string& app_id) override;
66 virtual void AddConnectionObserver(GCMConnectionObserver* observer) override; 67 virtual void AddConnectionObserver(GCMConnectionObserver* observer) override;
67 virtual void RemoveConnectionObserver( 68 virtual void RemoveConnectionObserver(
68 GCMConnectionObserver* observer) override; 69 GCMConnectionObserver* observer) override;
69 virtual void Enable() override; 70 virtual void Enable() override;
70 virtual void Disable() override; 71 virtual void Disable() override;
71 virtual GCMClient* GetGCMClientForTesting() const override; 72 virtual GCMClient* GetGCMClientForTesting() const override;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 169
169 // Used to pass a weak pointer to the IO worker. 170 // Used to pass a weak pointer to the IO worker.
170 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; 171 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); 173 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop);
173 }; 174 };
174 175
175 } // namespace gcm 176 } // namespace gcm
176 177
177 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ 178 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver_android.cc ('k') | components/gcm_driver/gcm_driver_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698