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 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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 15 matching lines...) Expand all Loading... | |
26 #include "net/url_request/url_request_context_getter.h" | 26 #include "net/url_request/url_request_context_getter.h" |
27 | 27 |
28 #if defined(ENABLE_EXTENSIONS) | 28 #if defined(ENABLE_EXTENSIONS) |
29 #include "extensions/browser/management_policy.h" | 29 #include "extensions/browser/management_policy.h" |
30 #endif | 30 #endif |
31 | 31 |
32 class Browser; | 32 class Browser; |
33 class GoogleServiceAuthError; | 33 class GoogleServiceAuthError; |
34 class PermissionRequestCreator; | 34 class PermissionRequestCreator; |
35 class Profile; | 35 class Profile; |
36 class ProfileSyncService; | |
36 class SupervisedUserBlacklistDownloader; | 37 class SupervisedUserBlacklistDownloader; |
37 class SupervisedUserRegistrationUtility; | 38 class SupervisedUserRegistrationUtility; |
38 class SupervisedUserServiceObserver; | 39 class SupervisedUserServiceObserver; |
39 class SupervisedUserSettingsService; | 40 class SupervisedUserSettingsService; |
40 class SupervisedUserSiteList; | 41 class SupervisedUserSiteList; |
41 class SupervisedUserURLFilter; | 42 class SupervisedUserURLFilter; |
42 class SupervisedUserWhitelistService; | 43 class SupervisedUserWhitelistService; |
43 | 44 |
44 namespace base { | 45 namespace base { |
45 class FilePath; | 46 class FilePath; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
326 | 327 |
327 // Owns us via the KeyedService mechanism. | 328 // Owns us via the KeyedService mechanism. |
328 Profile* profile_; | 329 Profile* profile_; |
329 | 330 |
330 bool active_; | 331 bool active_; |
331 | 332 |
332 Delegate* delegate_; | 333 Delegate* delegate_; |
333 | 334 |
334 PrefChangeRegistrar pref_change_registrar_; | 335 PrefChangeRegistrar pref_change_registrar_; |
335 | 336 |
337 // May be null in tests or due to command line flag. | |
338 ProfileSyncService* profile_sync_service_; // owned by BCKS factory. | |
Alexei Svitkine (slow)
2015/02/19 22:04:08
Nit: If you already have a comment above, merge th
Mike Lerman
2015/02/20 16:38:01
It is my humblest pleasure to use the fullest and
| |
339 | |
336 // True iff we're waiting for the Sync service to be initialized. | 340 // True iff we're waiting for the Sync service to be initialized. |
337 bool waiting_for_sync_initialization_; | 341 bool waiting_for_sync_initialization_; |
338 bool is_profile_active_; | 342 bool is_profile_active_; |
339 | 343 |
340 std::vector<NavigationBlockedCallback> navigation_blocked_callbacks_; | 344 std::vector<NavigationBlockedCallback> navigation_blocked_callbacks_; |
341 | 345 |
342 // True only when |Init()| method has been called. | 346 // True only when |Init()| method has been called. |
343 bool did_init_; | 347 bool did_init_; |
344 | 348 |
345 // True only when |Shutdown()| method has been called. | 349 // True only when |Shutdown()| method has been called. |
346 bool did_shutdown_; | 350 bool did_shutdown_; |
347 | 351 |
348 URLFilterContext url_filter_context_; | 352 URLFilterContext url_filter_context_; |
349 scoped_ptr<SupervisedUserBlacklistDownloader> blacklist_downloader_; | 353 scoped_ptr<SupervisedUserBlacklistDownloader> blacklist_downloader_; |
350 | 354 |
351 scoped_ptr<SupervisedUserWhitelistService> whitelist_service_; | 355 scoped_ptr<SupervisedUserWhitelistService> whitelist_service_; |
352 | 356 |
353 // Used to create permission requests. | 357 // Used to create permission requests. |
354 ScopedVector<PermissionRequestCreator> permissions_creators_; | 358 ScopedVector<PermissionRequestCreator> permissions_creators_; |
355 | 359 |
356 ObserverList<SupervisedUserServiceObserver> observer_list_; | 360 ObserverList<SupervisedUserServiceObserver> observer_list_; |
357 | 361 |
358 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; | 362 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; |
359 }; | 363 }; |
360 | 364 |
361 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 365 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
OLD | NEW |