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

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

Issue 608813003: Revert of Clear GCM data when the user clears cookies and other site data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const base::FilePath& store_path, 47 const base::FilePath& store_path,
48 const scoped_refptr<net::URLRequestContextGetter>& request_context, 48 const scoped_refptr<net::URLRequestContextGetter>& request_context,
49 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, 49 const scoped_refptr<base::SequencedTaskRunner>& ui_thread,
50 const scoped_refptr<base::SequencedTaskRunner>& io_thread, 50 const scoped_refptr<base::SequencedTaskRunner>& io_thread,
51 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner); 51 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner);
52 virtual ~GCMDriverDesktop(); 52 virtual ~GCMDriverDesktop();
53 53
54 // GCMDriver overrides: 54 // GCMDriver overrides:
55 virtual void Shutdown() OVERRIDE; 55 virtual void Shutdown() OVERRIDE;
56 virtual void OnSignedIn() OVERRIDE; 56 virtual void OnSignedIn() OVERRIDE;
57 virtual void OnSignedOut() OVERRIDE;
58 virtual void Purge() OVERRIDE; 57 virtual void Purge() OVERRIDE;
59 virtual void AddAppHandler(const std::string& app_id, 58 virtual void AddAppHandler(const std::string& app_id,
60 GCMAppHandler* handler) OVERRIDE; 59 GCMAppHandler* handler) OVERRIDE;
61 virtual void RemoveAppHandler(const std::string& app_id) OVERRIDE; 60 virtual void RemoveAppHandler(const std::string& app_id) OVERRIDE;
62 virtual void AddConnectionObserver(GCMConnectionObserver* observer) OVERRIDE; 61 virtual void AddConnectionObserver(GCMConnectionObserver* observer) OVERRIDE;
63 virtual void RemoveConnectionObserver( 62 virtual void RemoveConnectionObserver(
64 GCMConnectionObserver* observer) OVERRIDE; 63 GCMConnectionObserver* observer) OVERRIDE;
65 virtual void Enable() OVERRIDE; 64 virtual void Enable() OVERRIDE;
66 virtual void Disable() OVERRIDE; 65 virtual void Disable() OVERRIDE;
67 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE; 66 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 157
159 // Used to pass a weak pointer to the IO worker. 158 // Used to pass a weak pointer to the IO worker.
160 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; 159 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_;
161 160
162 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); 161 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop);
163 }; 162 };
164 163
165 } // namespace gcm 164 } // namespace gcm
166 165
167 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ 166 #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