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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_service.h

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Chromeos fix Created 3 years, 10 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 CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 bool IncludesSyncSessionsType() const; 208 bool IncludesSyncSessionsType() const;
209 209
210 // ProfileKeyedService override: 210 // ProfileKeyedService override:
211 void Shutdown() override; 211 void Shutdown() override;
212 212
213 // SyncTypePreferenceProvider implementation: 213 // SyncTypePreferenceProvider implementation:
214 syncer::ModelTypeSet GetPreferredDataTypes() const override; 214 syncer::ModelTypeSet GetPreferredDataTypes() const override;
215 215
216 #if !defined(OS_ANDROID) 216 #if !defined(OS_ANDROID)
217 // syncer::SyncServiceObserver implementation: 217 // syncer::SyncServiceObserver implementation:
218 void OnStateChanged() override; 218 void OnStateChanged(syncer::SyncService* sync) override;
219 219
220 // chrome::BrowserListObserver implementation: 220 // chrome::BrowserListObserver implementation:
221 void OnBrowserSetLastActive(Browser* browser) override; 221 void OnBrowserSetLastActive(Browser* browser) override;
222 #endif // !defined(OS_ANDROID) 222 #endif // !defined(OS_ANDROID)
223 223
224 // SupervisedUserURLFilter::Observer implementation: 224 // SupervisedUserURLFilter::Observer implementation:
225 void OnSiteListUpdated() override; 225 void OnSiteListUpdated() override;
226 226
227 private: 227 private:
228 friend class SupervisedUserServiceExtensionTestBase; 228 friend class SupervisedUserServiceExtensionTestBase;
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 471
472 base::ObserverList<SupervisedUserServiceObserver> observer_list_; 472 base::ObserverList<SupervisedUserServiceObserver> observer_list_;
473 473
474 // Prevents Sync from running until configuration is complete. 474 // Prevents Sync from running until configuration is complete.
475 std::unique_ptr<syncer::SyncSetupInProgressHandle> sync_blocker_; 475 std::unique_ptr<syncer::SyncSetupInProgressHandle> sync_blocker_;
476 476
477 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; 477 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_;
478 }; 478 };
479 479
480 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ 480 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/browsing_history_service.cc ('k') | chrome/browser/supervised_user/supervised_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698