blob: ca1d51850099228251f9e05d0bb71dbf1f00ec99 [file] [log] [blame]
[email protected]cce15bb2014-06-17 13:43:511// Copyright 2014 The Chromium Authors. All rights reserved.
[email protected]0850e842013-01-19 03:44:312// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]cce15bb2014-06-17 13:43:515#ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
6#define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_
[email protected]0850e842013-01-19 03:44:317
avi664c07b2015-12-26 02:18:318#include <stddef.h>
9
treib950c6e82014-09-23 13:07:2910#include <map>
treib950c6e82014-09-23 13:07:2911#include <string>
[email protected]0850e842013-01-19 03:44:3112#include <vector>
13
[email protected]438f7e12013-08-07 06:59:0014#include "base/callback.h"
[email protected]076ebeda2014-06-06 21:47:2615#include "base/gtest_prod_util.h"
avi664c07b2015-12-26 02:18:3116#include "base/macros.h"
[email protected]a581ea22013-05-06 12:34:1917#include "base/memory/scoped_ptr.h"
thestig7790a352015-08-22 00:05:1118#include "base/memory/scoped_vector.h"
treibab0a39e2014-09-24 14:48:2819#include "base/observer_list.h"
[email protected]1ab137b2013-03-21 03:33:1820#include "base/prefs/pref_change_registrar.h"
[email protected]f2253ac2014-05-28 08:37:2121#include "base/scoped_observer.h"
[email protected]f9b294362013-06-10 20:22:3122#include "base/strings/string16.h"
avi664c07b2015-12-26 02:18:3123#include "build/build_config.h"
treib4edbded2014-09-05 08:43:5524#include "chrome/browser/supervised_user/experimental/supervised_user_blacklist.h"
[email protected]cce15bb2014-06-17 13:43:5125#include "chrome/browser/supervised_user/supervised_user_url_filter.h"
26#include "chrome/browser/supervised_user/supervised_users.h"
[email protected]514fcf22013-08-13 06:37:2427#include "chrome/browser/ui/browser_list_observer.h"
[email protected]12b7af32014-03-13 05:28:2028#include "components/keyed_service/core/keyed_service.h"
droger507e7e2f2015-04-03 18:56:2329#include "components/sync_driver/sync_service_observer.h"
blundell7282b512015-11-09 07:21:1130#include "components/sync_driver/sync_type_preference_provider.h"
maxbogue8e4fb452015-02-11 20:26:0931#include "net/url_request/url_request_context_getter.h"
[email protected]c14a6802014-07-11 21:51:1232
33#if defined(ENABLE_EXTENSIONS)
[email protected]301116c62013-11-26 10:37:4534#include "extensions/browser/management_policy.h"
[email protected]c14a6802014-07-11 21:51:1235#endif
[email protected]0850e842013-01-19 03:44:3136
[email protected]509ad1a92013-03-19 21:41:0637class Browser;
treibcffa6502015-08-06 09:12:2738class FileDownloader;
[email protected]acfcfbb2013-05-13 18:01:2739class GoogleServiceAuthError;
[email protected]4db65f952014-05-20 15:46:3040class PermissionRequestCreator;
[email protected]0850e842013-01-19 03:44:3141class Profile;
[email protected]cce15bb2014-06-17 13:43:5142class SupervisedUserRegistrationUtility;
treibab0a39e2014-09-24 14:48:2843class SupervisedUserServiceObserver;
[email protected]cce15bb2014-06-17 13:43:5144class SupervisedUserSettingsService;
45class SupervisedUserSiteList;
46class SupervisedUserURLFilter;
bauerb4da36132014-12-26 19:53:1347class SupervisedUserWhitelistService;
[email protected]0850e842013-01-19 03:44:3148
treibdaece84f2014-09-05 12:58:1549namespace base {
50class FilePath;
treibf832a992015-03-24 18:09:2451class Version;
treibdaece84f2014-09-05 12:58:1552}
53
treib565a0192014-12-04 13:17:3154namespace content {
55class WebContents;
56}
57
[email protected]f2253ac2014-05-28 08:37:2158namespace extensions {
59class ExtensionRegistry;
60}
61
[email protected]443e9312013-05-06 06:17:3462namespace user_prefs {
63class PrefRegistrySyncable;
64}
65
[email protected]cce15bb2014-06-17 13:43:5166// This class handles all the information related to a given supervised profile
[email protected]0850e842013-01-19 03:44:3167// (e.g. the installed content packs, the default URL filtering behavior, or
68// manual whitelist/blacklist overrides).
[email protected]cce15bb2014-06-17 13:43:5169class SupervisedUserService : public KeyedService,
[email protected]c14a6802014-07-11 21:51:1270#if defined(ENABLE_EXTENSIONS)
[email protected]cce15bb2014-06-17 13:43:5171 public extensions::ManagementPolicy::Provider,
[email protected]c14a6802014-07-11 21:51:1272#endif
[email protected]3a276ff2014-08-12 14:22:0973 public SyncTypePreferenceProvider,
bauerb5f8cda92015-10-07 15:36:4474#if !defined(OS_ANDROID) && !defined(OS_IOS)
droger507e7e2f2015-04-03 18:56:2375 public sync_driver::SyncServiceObserver,
bauerbce9a1a82014-12-18 13:34:2476 public chrome::BrowserListObserver,
bauerb5f8cda92015-10-07 15:36:4477#endif
bauerbce9a1a82014-12-18 13:34:2478 public SupervisedUserURLFilter::Observer {
[email protected]0850e842013-01-19 03:44:3179 public:
treib8ecc1eb52015-03-04 18:29:0680 using NavigationBlockedCallback = base::Callback<void(content::WebContents*)>;
81 using AuthErrorCallback = base::Callback<void(const GoogleServiceAuthError&)>;
82 using SuccessCallback = base::Callback<void(bool)>;
[email protected]0850e842013-01-19 03:44:3183
[email protected]f085fdd52014-06-11 18:09:2084 class Delegate {
85 public:
86 virtual ~Delegate() {}
87 // Returns true to indicate that the delegate handled the (de)activation, or
[email protected]cce15bb2014-06-17 13:43:5188 // false to indicate that the SupervisedUserService itself should handle it.
[email protected]f085fdd52014-06-11 18:09:2089 virtual bool SetActive(bool active) = 0;
[email protected]f085fdd52014-06-11 18:09:2090 };
91
dchengc072fff2014-10-21 11:39:0592 ~SupervisedUserService() override;
[email protected]0850e842013-01-19 03:44:3193
[email protected]37ca3fe02013-07-05 15:32:4494 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
[email protected]0850e842013-01-19 03:44:3195
bauerb5f8cda92015-10-07 15:36:4496 // Initializes this object.
97 void Init();
98
[email protected]f085fdd52014-06-11 18:09:2099 void SetDelegate(Delegate* delegate);
100
[email protected]0850e842013-01-19 03:44:31101 // Returns the URL filter for the IO thread, for filtering network requests
[email protected]cce15bb2014-06-17 13:43:51102 // (in SupervisedUserResourceThrottle).
103 scoped_refptr<const SupervisedUserURLFilter> GetURLFilterForIOThread();
[email protected]0850e842013-01-19 03:44:31104
105 // Returns the URL filter for the UI thread, for filtering navigations and
106 // classifying sites in the history view.
[email protected]cce15bb2014-06-17 13:43:51107 SupervisedUserURLFilter* GetURLFilterForUIThread();
[email protected]0850e842013-01-19 03:44:31108
bauerb4da36132014-12-26 19:53:13109 // Returns the whitelist service.
110 SupervisedUserWhitelistService* GetWhitelistService();
111
treib8ecc1eb52015-03-04 18:29:06112 // Whether the user can request to get access to blocked URLs or to new
113 // extensions.
[email protected]0369d6ab2013-08-09 01:52:59114 bool AccessRequestsEnabled();
115
treib8ecc1eb52015-03-04 18:29:06116 // Adds an access request for the given URL.
117 void AddURLAccessRequest(const GURL& url, const SuccessCallback& callback);
118
119 // Adds an update request for the given WebStore item (App/Extension).
120 void AddExtensionUpdateRequest(const std::string& extension_id,
treibf832a992015-03-24 18:09:24121 const base::Version& version,
treib8ecc1eb52015-03-04 18:29:06122 const SuccessCallback& callback);
[email protected]e861bba2013-06-17 15:20:54123
treib40d3ad92015-10-20 18:15:42124 // Same as above, but without a callback, just logging errors on failure.
125 void AddExtensionUpdateRequest(const std::string& extension_id,
126 const base::Version& version);
127
128 // Get the string used to identify an extension update request. Public for
129 // testing.
130 static std::string GetExtensionUpdateRequestId(
131 const std::string& extension_id,
132 const base::Version& version);
133
[email protected]a9c2d642013-05-31 14:37:14134 // Returns the email address of the custodian.
135 std::string GetCustodianEmailAddress() const;
136
[email protected]fae057a2013-06-21 22:46:08137 // Returns the name of the custodian, or the email address if the name is
138 // empty.
139 std::string GetCustodianName() const;
140
treib3e7ecf72014-10-24 16:44:07141 // Returns the email address of the second custodian, or the empty string
142 // if there is no second custodian.
143 std::string GetSecondCustodianEmailAddress() const;
144
145 // Returns the name of the second custodian, or the email address if the name
146 // is empty, or the empty string is there is no second custodian.
147 std::string GetSecondCustodianName() const;
148
treib2170ea02015-10-13 14:55:12149 // Returns a message saying that extensions can only be modified by the
150 // custodian.
151 base::string16 GetExtensionsLockedMessage() const;
152
bauerb5f8cda92015-10-07 15:36:44153#if !defined(OS_ANDROID) && !defined(OS_IOS)
[email protected]a243d644c2013-06-20 18:37:55154 // Initializes this profile for syncing, using the provided |refresh_token| to
155 // mint access tokens for Sync.
156 void InitSync(const std::string& refresh_token);
[email protected]acfcfbb2013-05-13 18:01:27157
[email protected]cce15bb2014-06-17 13:43:51158 // Convenience method that registers this supervised user using
[email protected]458d59442013-08-01 14:19:32159 // |registration_utility| and initializes sync with the returned token.
160 // The |callback| will be called when registration is complete,
[email protected]3a276ff2014-08-12 14:22:09161 // whether it succeeded or not -- unless registration was cancelled manually,
[email protected]458d59442013-08-01 14:19:32162 // in which case the callback will be ignored.
[email protected]cce15bb2014-06-17 13:43:51163 void RegisterAndInitSync(
164 SupervisedUserRegistrationUtility* registration_utility,
165 Profile* custodian_profile,
166 const std::string& supervised_user_id,
167 const AuthErrorCallback& callback);
thestig1b76f1a2015-09-30 22:52:38168#endif
[email protected]acfcfbb2013-05-13 18:01:27169
[email protected]438f7e12013-08-07 06:59:00170 void AddNavigationBlockedCallback(const NavigationBlockedCallback& callback);
171 void DidBlockNavigation(content::WebContents* web_contents);
172
treibab0a39e2014-09-24 14:48:28173 void AddObserver(SupervisedUserServiceObserver* observer);
174 void RemoveObserver(SupervisedUserServiceObserver* observer);
175
treib531fc7312014-12-09 12:49:20176 void AddPermissionRequestCreator(
177 scoped_ptr<PermissionRequestCreator> creator);
bauerb646019b12014-10-16 16:23:09178
bauerb5f8cda92015-10-07 15:36:44179 // ProfileKeyedService override:
180 void Shutdown() override;
181
[email protected]3a276ff2014-08-12 14:22:09182 // SyncTypePreferenceProvider implementation:
dchengc072fff2014-10-21 11:39:05183 syncer::ModelTypeSet GetPreferredDataTypes() const override;
[email protected]3a276ff2014-08-12 14:22:09184
bauerb5f8cda92015-10-07 15:36:44185#if !defined(OS_ANDROID) && !defined(OS_IOS)
droger507e7e2f2015-04-03 18:56:23186 // sync_driver::SyncServiceObserver implementation:
dchengc072fff2014-10-21 11:39:05187 void OnStateChanged() override;
[email protected]0850e842013-01-19 03:44:31188
[email protected]dfddd022013-07-10 17:29:48189 // chrome::BrowserListObserver implementation:
dchengc072fff2014-10-21 11:39:05190 void OnBrowserSetLastActive(Browser* browser) override;
bauerb5f8cda92015-10-07 15:36:44191#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
[email protected]dfddd022013-07-10 17:29:48192
bauerbce9a1a82014-12-18 13:34:24193 // SupervisedUserURLFilter::Observer implementation:
194 void OnSiteListUpdated() override;
195
[email protected]0850e842013-01-19 03:44:31196 private:
[email protected]cce15bb2014-06-17 13:43:51197 friend class SupervisedUserServiceExtensionTestBase;
198 friend class SupervisedUserServiceFactory;
pvalenzuelac2ca4582014-10-14 19:24:57199 FRIEND_TEST_ALL_PREFIXES(SingleClientSupervisedUserSettingsSyncTest, Sanity);
[email protected]cce15bb2014-06-17 13:43:51200 FRIEND_TEST_ALL_PREFIXES(SupervisedUserServiceTest, ClearOmitOnRegistration);
fhorschig1f351f02014-09-30 12:30:22201 FRIEND_TEST_ALL_PREFIXES(SupervisedUserServiceTest,
202 ChangesIncludedSessionOnChangedSettings);
203 FRIEND_TEST_ALL_PREFIXES(SupervisedUserServiceTest,
204 ChangesSyncSessionStateOnChangedSettings);
treibbb9a1962015-02-25 13:40:59205 FRIEND_TEST_ALL_PREFIXES(SupervisedUserServiceExtensionTest,
206 ExtensionManagementPolicyProvider);
bauerb95a50682015-01-07 17:04:15207
treib8ecc1eb52015-03-04 18:29:06208 using CreatePermissionRequestCallback =
209 base::Callback<void(PermissionRequestCreator*, const SuccessCallback&)>;
210
[email protected]cce15bb2014-06-17 13:43:51211 // A bridge from the UI thread to the SupervisedUserURLFilters, one of which
212 // lives on the IO thread. This class mediates access to them and makes sure
213 // they are kept in sync.
[email protected]0850e842013-01-19 03:44:31214 class URLFilterContext {
215 public:
216 URLFilterContext();
217 ~URLFilterContext();
218
[email protected]cce15bb2014-06-17 13:43:51219 SupervisedUserURLFilter* ui_url_filter() const;
220 SupervisedUserURLFilter* io_url_filter() const;
[email protected]0850e842013-01-19 03:44:31221
222 void SetDefaultFilteringBehavior(
[email protected]cce15bb2014-06-17 13:43:51223 SupervisedUserURLFilter::FilteringBehavior behavior);
bauerb95a50682015-01-07 17:04:15224 void LoadWhitelists(
225 const std::vector<scoped_refptr<SupervisedUserSiteList>>& site_lists);
bauerbce9a1a82014-12-18 13:34:24226 void LoadBlacklist(const base::FilePath& path,
227 const base::Closure& callback);
bauerb95a50682015-01-07 17:04:15228 void SetManualHosts(scoped_ptr<std::map<std::string, bool>> host_map);
229 void SetManualURLs(scoped_ptr<std::map<GURL, bool>> url_map);
[email protected]0850e842013-01-19 03:44:31230
maxbogue8e4fb452015-02-11 20:26:09231 void InitAsyncURLChecker(
treibd3f8b7a2015-04-10 11:41:33232 const scoped_refptr<net::URLRequestContextGetter>& context);
treib9e4fab902014-10-29 14:25:26233
treib22c3a042015-01-15 21:30:13234 void Clear();
235
[email protected]0850e842013-01-19 03:44:31236 private:
bauerbce9a1a82014-12-18 13:34:24237 void OnBlacklistLoaded(const base::Closure& callback);
treib4edbded2014-09-05 08:43:55238
[email protected]cce15bb2014-06-17 13:43:51239 // SupervisedUserURLFilter is refcounted because the IO thread filter is
240 // used both by ProfileImplIOData and OffTheRecordProfileIOData (to filter
[email protected]0850e842013-01-19 03:44:31241 // network requests), so they both keep a reference to it.
242 // Clients should not keep references to the UI thread filter, however
243 // (the filter will live as long as the profile lives, and afterwards it
244 // should not be used anymore either).
[email protected]cce15bb2014-06-17 13:43:51245 scoped_refptr<SupervisedUserURLFilter> ui_url_filter_;
246 scoped_refptr<SupervisedUserURLFilter> io_url_filter_;
[email protected]0850e842013-01-19 03:44:31247
treib4edbded2014-09-05 08:43:55248 SupervisedUserBlacklist blacklist_;
249
[email protected]0850e842013-01-19 03:44:31250 DISALLOW_COPY_AND_ASSIGN(URLFilterContext);
251 };
252
[email protected]cce15bb2014-06-17 13:43:51253 // Use |SupervisedUserServiceFactory::GetForProfile(..)| to get
[email protected]3bf45d02013-07-10 00:03:41254 // an instance of this service.
[email protected]cce15bb2014-06-17 13:43:51255 explicit SupervisedUserService(Profile* profile);
[email protected]3bf45d02013-07-10 00:03:41256
[email protected]f085fdd52014-06-11 18:09:20257 void SetActive(bool active);
258
bauerb5f8cda92015-10-07 15:36:44259#if !defined(OS_ANDROID) && !defined(OS_IOS)
[email protected]0085863a2013-12-06 21:19:03260 void OnCustodianProfileDownloaded(const base::string16& full_name);
[email protected]200729f82013-06-22 07:05:55261
[email protected]cce15bb2014-06-17 13:43:51262 void OnSupervisedUserRegistered(const AuthErrorCallback& callback,
263 Profile* custodian_profile,
264 const GoogleServiceAuthError& auth_error,
265 const std::string& token);
[email protected]acfcfbb2013-05-13 18:01:27266
[email protected]a243d644c2013-06-20 18:37:55267 void SetupSync();
[email protected]6e08b9a62014-07-08 00:32:48268 void StartSetupSync();
269 void FinishSetupSyncWhenReady();
270 void FinishSetupSync();
bauerb5f8cda92015-10-07 15:36:44271#endif
[email protected]a243d644c2013-06-20 18:37:55272
[email protected]cce15bb2014-06-17 13:43:51273 bool ProfileIsSupervised() const;
[email protected]e000daf2013-07-31 16:50:58274
treib3fce4e92014-09-26 16:06:25275 void OnCustodianInfoChanged();
276
[email protected]c14a6802014-07-11 21:51:12277#if defined(ENABLE_EXTENSIONS)
treibbb9a1962015-02-25 13:40:59278 // extensions::ManagementPolicy::Provider implementation:
279 std::string GetDebugPolicyProviderName() const override;
280 bool UserMayLoad(const extensions::Extension* extension,
281 base::string16* error) const override;
treib755c12d2015-03-30 08:46:25282 bool UserMayModifySettings(const extensions::Extension* extension,
283 base::string16* error) const override;
treibbb9a1962015-02-25 13:40:59284 bool MustRemainInstalled(const extensions::Extension* extension,
285 base::string16* error) const override;
[email protected]0850e842013-01-19 03:44:31286
[email protected]c14a6802014-07-11 21:51:12287 // Extensions helper to SetActive().
288 void SetExtensionsActive();
289#endif
290
[email protected]cce15bb2014-06-17 13:43:51291 SupervisedUserSettingsService* GetSettingsService();
[email protected]e861bba2013-06-17 15:20:54292
bauerbd3a36cc42014-10-01 13:05:49293 size_t FindEnabledPermissionRequestCreator(size_t start);
treib8ecc1eb52015-03-04 18:29:06294 void AddPermissionRequestInternal(
295 const CreatePermissionRequestCallback& create_request,
296 const SuccessCallback& callback,
297 size_t index);
298 void OnPermissionRequestIssued(
299 const CreatePermissionRequestCallback& create_request,
300 const SuccessCallback& callback,
301 size_t index,
302 bool success);
bauerbd3a36cc42014-10-01 13:05:49303
[email protected]cce15bb2014-06-17 13:43:51304 void OnSupervisedUserIdChanged();
[email protected]f085fdd52014-06-11 18:09:20305
[email protected]0850e842013-01-19 03:44:31306 void OnDefaultFilteringBehaviorChanged();
307
bauerb95a50682015-01-07 17:04:15308 void OnSiteListsChanged(
309 const std::vector<scoped_refptr<SupervisedUserSiteList>>& site_lists);
[email protected]0850e842013-01-19 03:44:31310
treib2fd187392015-04-16 17:19:38311 // Asynchronously loads a blacklist from a binary file at |path| and applies
312 // it to the URL filters. If no file exists at |path| yet, downloads a file
313 // from |url| and stores it at |path| first.
treibf136dfb2014-09-25 17:37:47314 void LoadBlacklist(const base::FilePath& path, const GURL& url);
315
treib2fd187392015-04-16 17:19:38316 void OnBlacklistFileChecked(const base::FilePath& path,
317 const GURL& url,
318 bool file_exists);
319
320 // Asynchronously loads a blacklist from a binary file at |path| and applies
321 // it to the URL filters.
treibf136dfb2014-09-25 17:37:47322 void LoadBlacklistFromFile(const base::FilePath& path);
323
324 void OnBlacklistDownloadDone(const base::FilePath& path, bool success);
treib4edbded2014-09-05 08:43:55325
bauerbce9a1a82014-12-18 13:34:24326 void OnBlacklistLoaded();
327
[email protected]5e022292013-02-06 16:42:17328 // Updates the manual overrides for hosts in the URL filters when the
329 // corresponding preference is changed.
330 void UpdateManualHosts();
[email protected]0850e842013-01-19 03:44:31331
[email protected]5e022292013-02-06 16:42:17332 // Updates the manual overrides for URLs in the URL filters when the
333 // corresponding preference is changed.
334 void UpdateManualURLs();
[email protected]0850e842013-01-19 03:44:31335
[email protected]0b4c6b22014-08-04 09:46:31336 // Returns the human readable name of the supervised user.
337 std::string GetSupervisedUserName() const;
338
fhorschig1f351f02014-09-30 12:30:22339 // Subscribes to the SupervisedUserPrefStore, refreshes
340 // |includes_sync_sessions_type_| and triggers reconfiguring the
341 // ProfileSyncService.
342 void OnHistoryRecordingStateChanged();
343
344 // Returns true if the syncer::SESSIONS type should be included in Sync.
345 bool IncludesSyncSessionsType() const;
346
347 // The option a custodian sets to either record or prevent recording the
348 // supervised user's history. Set by |FetchNewSessionSyncState()| and
349 // defaults to true.
350 bool includes_sync_sessions_type_;
351
[email protected]12b7af32014-03-13 05:28:20352 // Owns us via the KeyedService mechanism.
[email protected]0850e842013-01-19 03:44:31353 Profile* profile_;
354
[email protected]f085fdd52014-06-11 18:09:20355 bool active_;
356
357 Delegate* delegate_;
358
[email protected]0850e842013-01-19 03:44:31359 PrefChangeRegistrar pref_change_registrar_;
360
[email protected]a243d644c2013-06-20 18:37:55361 // True iff we're waiting for the Sync service to be initialized.
362 bool waiting_for_sync_initialization_;
[email protected]dfddd022013-07-10 17:29:48363 bool is_profile_active_;
[email protected]a243d644c2013-06-20 18:37:55364
[email protected]438f7e12013-08-07 06:59:00365 std::vector<NavigationBlockedCallback> navigation_blocked_callbacks_;
366
[email protected]3a276ff2014-08-12 14:22:09367 // True only when |Init()| method has been called.
368 bool did_init_;
369
[email protected]3bf45d02013-07-10 00:03:41370 // True only when |Shutdown()| method has been called.
371 bool did_shutdown_;
372
[email protected]0850e842013-01-19 03:44:31373 URLFilterContext url_filter_context_;
treibcffa6502015-08-06 09:12:27374 scoped_ptr<FileDownloader> blacklist_downloader_;
[email protected]8052b242013-11-15 16:40:55375
bauerb4da36132014-12-26 19:53:13376 scoped_ptr<SupervisedUserWhitelistService> whitelist_service_;
377
[email protected]4db65f952014-05-20 15:46:30378 // Used to create permission requests.
bauerbd3a36cc42014-10-01 13:05:49379 ScopedVector<PermissionRequestCreator> permissions_creators_;
[email protected]4db65f952014-05-20 15:46:30380
brettwd195c952015-06-02 17:31:12381 base::ObserverList<SupervisedUserServiceObserver> observer_list_;
treibab0a39e2014-09-24 14:48:28382
[email protected]cce15bb2014-06-17 13:43:51383 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_;
[email protected]0850e842013-01-19 03:44:31384};
385
[email protected]cce15bb2014-06-17 13:43:51386#endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_