blob: 3f75fff8527cba1ef90670dcc0d27f48a3bf6aa5 [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
treib950c6e82014-09-23 13:07:298#include <map>
treib950c6e82014-09-23 13:07:299#include <string>
[email protected]0850e842013-01-19 03:44:3110#include <vector>
11
[email protected]438f7e12013-08-07 06:59:0012#include "base/callback.h"
[email protected]076ebeda2014-06-06 21:47:2613#include "base/gtest_prod_util.h"
[email protected]a581ea22013-05-06 12:34:1914#include "base/memory/scoped_ptr.h"
treibab0a39e2014-09-24 14:48:2815#include "base/observer_list.h"
[email protected]1ab137b2013-03-21 03:33:1816#include "base/prefs/pref_change_registrar.h"
[email protected]f2253ac2014-05-28 08:37:2117#include "base/scoped_observer.h"
[email protected]f9b294362013-06-10 20:22:3118#include "base/strings/string16.h"
treib4edbded2014-09-05 08:43:5519#include "chrome/browser/supervised_user/experimental/supervised_user_blacklist.h"
[email protected]cce15bb2014-06-17 13:43:5120#include "chrome/browser/supervised_user/supervised_user_url_filter.h"
21#include "chrome/browser/supervised_user/supervised_users.h"
[email protected]a243d644c2013-06-20 18:37:5522#include "chrome/browser/sync/profile_sync_service_observer.h"
[email protected]3a276ff2014-08-12 14:22:0923#include "chrome/browser/sync/sync_type_preference_provider.h"
[email protected]514fcf22013-08-13 06:37:2424#include "chrome/browser/ui/browser_list_observer.h"
[email protected]12b7af32014-03-13 05:28:2025#include "components/keyed_service/core/keyed_service.h"
[email protected]c14a6802014-07-11 21:51:1226
27#if defined(ENABLE_EXTENSIONS)
[email protected]f2253ac2014-05-28 08:37:2128#include "extensions/browser/extension_registry_observer.h"
[email protected]301116c62013-11-26 10:37:4529#include "extensions/browser/management_policy.h"
[email protected]c14a6802014-07-11 21:51:1230#endif
[email protected]0850e842013-01-19 03:44:3131
[email protected]509ad1a92013-03-19 21:41:0632class Browser;
[email protected]acfcfbb2013-05-13 18:01:2733class GoogleServiceAuthError;
[email protected]4db65f952014-05-20 15:46:3034class PermissionRequestCreator;
[email protected]0850e842013-01-19 03:44:3135class Profile;
treibf136dfb2014-09-25 17:37:4736class SupervisedUserBlacklistDownloader;
[email protected]cce15bb2014-06-17 13:43:5137class SupervisedUserRegistrationUtility;
treibab0a39e2014-09-24 14:48:2838class SupervisedUserServiceObserver;
[email protected]cce15bb2014-06-17 13:43:5139class SupervisedUserSettingsService;
40class SupervisedUserSiteList;
41class SupervisedUserURLFilter;
[email protected]0850e842013-01-19 03:44:3142
treibdaece84f2014-09-05 12:58:1543namespace base {
44class FilePath;
45}
46
treib565a0192014-12-04 13:17:3147namespace content {
48class WebContents;
49}
50
[email protected]f2253ac2014-05-28 08:37:2151namespace extensions {
52class ExtensionRegistry;
53}
54
treib9e4fab902014-10-29 14:25:2655namespace net {
56class URLRequestContextGetter;
57}
58
[email protected]443e9312013-05-06 06:17:3459namespace user_prefs {
60class PrefRegistrySyncable;
61}
62
[email protected]cce15bb2014-06-17 13:43:5163// This class handles all the information related to a given supervised profile
[email protected]0850e842013-01-19 03:44:3164// (e.g. the installed content packs, the default URL filtering behavior, or
65// manual whitelist/blacklist overrides).
[email protected]cce15bb2014-06-17 13:43:5166class SupervisedUserService : public KeyedService,
[email protected]c14a6802014-07-11 21:51:1267#if defined(ENABLE_EXTENSIONS)
[email protected]cce15bb2014-06-17 13:43:5168 public extensions::ManagementPolicy::Provider,
[email protected]cce15bb2014-06-17 13:43:5169 public extensions::ExtensionRegistryObserver,
[email protected]c14a6802014-07-11 21:51:1270#endif
[email protected]3a276ff2014-08-12 14:22:0971 public SyncTypePreferenceProvider,
[email protected]c14a6802014-07-11 21:51:1272 public ProfileSyncServiceObserver,
[email protected]cce15bb2014-06-17 13:43:5173 public chrome::BrowserListObserver {
[email protected]0850e842013-01-19 03:44:3174 public:
[email protected]d2065e062013-12-12 23:49:5275 typedef std::vector<base::string16> CategoryList;
[email protected]438f7e12013-08-07 06:59:0076 typedef base::Callback<void(content::WebContents*)> NavigationBlockedCallback;
[email protected]514fcf22013-08-13 06:37:2477 typedef base::Callback<void(const GoogleServiceAuthError&)> AuthErrorCallback;
bauerb646019b12014-10-16 16:23:0978 typedef base::Callback<void(bool)> SuccessCallback;
[email protected]0850e842013-01-19 03:44:3179
[email protected]f085fdd52014-06-11 18:09:2080 class Delegate {
81 public:
82 virtual ~Delegate() {}
83 // Returns true to indicate that the delegate handled the (de)activation, or
[email protected]cce15bb2014-06-17 13:43:5184 // false to indicate that the SupervisedUserService itself should handle it.
[email protected]f085fdd52014-06-11 18:09:2085 virtual bool SetActive(bool active) = 0;
treibad86c012014-12-09 11:12:5586 // TODO(treib): Unused, remove.
treibf813dfc2014-12-08 11:26:3387 virtual bool IsChildAccount() const;
treibdaece84f2014-09-05 12:58:1588 // Returns the path to a blacklist file to load, or an empty path to
89 // indicate "none".
treib38983df2014-10-24 09:35:1290 virtual base::FilePath GetBlacklistPath() const;
treibf136dfb2014-09-25 17:37:4791 // Returns the URL from which to download a blacklist if no local one exists
92 // yet. The blacklist file will be stored at |GetBlacklistPath()|.
treib38983df2014-10-24 09:35:1293 virtual GURL GetBlacklistURL() const;
treib9e4fab902014-10-29 14:25:2694 // Returns the identifier ("cx") of the Custom Search Engine to use for the
95 // experimental "SafeSites" feature, or the empty string to disable the
96 // feature.
97 virtual std::string GetSafeSitesCx() const;
[email protected]f085fdd52014-06-11 18:09:2098 };
99
dchengc072fff2014-10-21 11:39:05100 ~SupervisedUserService() override;
[email protected]0850e842013-01-19 03:44:31101
[email protected]a243d644c2013-06-20 18:37:55102 // ProfileKeyedService override:
dchengc072fff2014-10-21 11:39:05103 void Shutdown() override;
[email protected]a243d644c2013-06-20 18:37:55104
[email protected]37ca3fe02013-07-05 15:32:44105 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
[email protected]0850e842013-01-19 03:44:31106
[email protected]f085fdd52014-06-11 18:09:20107 void SetDelegate(Delegate* delegate);
108
[email protected]0850e842013-01-19 03:44:31109 // Returns the URL filter for the IO thread, for filtering network requests
[email protected]cce15bb2014-06-17 13:43:51110 // (in SupervisedUserResourceThrottle).
111 scoped_refptr<const SupervisedUserURLFilter> GetURLFilterForIOThread();
[email protected]0850e842013-01-19 03:44:31112
113 // Returns the URL filter for the UI thread, for filtering navigations and
114 // classifying sites in the history view.
[email protected]cce15bb2014-06-17 13:43:51115 SupervisedUserURLFilter* GetURLFilterForUIThread();
[email protected]0850e842013-01-19 03:44:31116
117 // Returns the URL's category, obtained from the installed content packs.
118 int GetCategory(const GURL& url);
119
120 // Returns the list of all known human-readable category names, sorted by ID
121 // number. Called in the critical path of drawing the history UI, so needs to
122 // be fast.
123 void GetCategoryNames(CategoryList* list);
124
[email protected]0369d6ab2013-08-09 01:52:59125 // Whether the user can request access to blocked URLs.
126 bool AccessRequestsEnabled();
127
[email protected]e861bba2013-06-17 15:20:54128 // Adds an access request for the given URL. The requests are stored using
129 // a prefix followed by a URIEncoded version of the URL. Each entry contains
130 // a dictionary which currently has the timestamp of the request in it.
bauerb646019b12014-10-16 16:23:09131 void AddAccessRequest(const GURL& url, const SuccessCallback& callback);
[email protected]e861bba2013-06-17 15:20:54132
[email protected]a9c2d642013-05-31 14:37:14133 // Returns the email address of the custodian.
134 std::string GetCustodianEmailAddress() const;
135
[email protected]fae057a2013-06-21 22:46:08136 // Returns the name of the custodian, or the email address if the name is
137 // empty.
138 std::string GetCustodianName() const;
139
treib3e7ecf72014-10-24 16:44:07140 // Returns the email address of the second custodian, or the empty string
141 // if there is no second custodian.
142 std::string GetSecondCustodianEmailAddress() const;
143
144 // Returns the name of the second custodian, or the email address if the name
145 // is empty, or the empty string is there is no second custodian.
146 std::string GetSecondCustodianName() const;
147
[email protected]0850e842013-01-19 03:44:31148 // Initializes this object. This method does nothing if the profile is not
[email protected]cce15bb2014-06-17 13:43:51149 // supervised.
[email protected]0850e842013-01-19 03:44:31150 void Init();
151
[email protected]a243d644c2013-06-20 18:37:55152 // Initializes this profile for syncing, using the provided |refresh_token| to
153 // mint access tokens for Sync.
154 void InitSync(const std::string& refresh_token);
[email protected]acfcfbb2013-05-13 18:01:27155
[email protected]cce15bb2014-06-17 13:43:51156 // Convenience method that registers this supervised user using
[email protected]458d59442013-08-01 14:19:32157 // |registration_utility| and initializes sync with the returned token.
158 // The |callback| will be called when registration is complete,
[email protected]3a276ff2014-08-12 14:22:09159 // whether it succeeded or not -- unless registration was cancelled manually,
[email protected]458d59442013-08-01 14:19:32160 // in which case the callback will be ignored.
[email protected]cce15bb2014-06-17 13:43:51161 void RegisterAndInitSync(
162 SupervisedUserRegistrationUtility* registration_utility,
163 Profile* custodian_profile,
164 const std::string& supervised_user_id,
165 const AuthErrorCallback& callback);
[email protected]acfcfbb2013-05-13 18:01:27166
[email protected]4f02aac12013-05-20 05:19:06167 void set_elevated_for_testing(bool skip) {
168 elevated_for_testing_ = skip;
[email protected]849749d2013-05-06 17:30:45169 }
170
[email protected]438f7e12013-08-07 06:59:00171 void AddNavigationBlockedCallback(const NavigationBlockedCallback& callback);
172 void DidBlockNavigation(content::WebContents* web_contents);
173
treibab0a39e2014-09-24 14:48:28174 void AddObserver(SupervisedUserServiceObserver* observer);
175 void RemoveObserver(SupervisedUserServiceObserver* observer);
176
treib531fc7312014-12-09 12:49:20177 void AddPermissionRequestCreator(
178 scoped_ptr<PermissionRequestCreator> creator);
bauerb646019b12014-10-16 16:23:09179
[email protected]c14a6802014-07-11 21:51:12180#if defined(ENABLE_EXTENSIONS)
[email protected]ce019142013-02-12 18:08:10181 // extensions::ManagementPolicy::Provider implementation:
dchengc072fff2014-10-21 11:39:05182 std::string GetDebugPolicyProviderName() const override;
183 bool UserMayLoad(const extensions::Extension* extension,
184 base::string16* error) const override;
185 bool UserMayModifySettings(const extensions::Extension* extension,
186 base::string16* error) const override;
[email protected]0850e842013-01-19 03:44:31187
[email protected]f2253ac2014-05-28 08:37:21188 // extensions::ExtensionRegistryObserver implementation.
dchengc072fff2014-10-21 11:39:05189 void OnExtensionLoaded(content::BrowserContext* browser_context,
190 const extensions::Extension* extension) override;
191 void OnExtensionUnloaded(
[email protected]f2253ac2014-05-28 08:37:21192 content::BrowserContext* browser_context,
193 const extensions::Extension* extension,
mostynbfb66cb4f2014-10-07 09:15:42194 extensions::UnloadedExtensionInfo::Reason reason) override;
[email protected]c14a6802014-07-11 21:51:12195#endif
196
[email protected]3a276ff2014-08-12 14:22:09197 // SyncTypePreferenceProvider implementation:
dchengc072fff2014-10-21 11:39:05198 syncer::ModelTypeSet GetPreferredDataTypes() const override;
[email protected]3a276ff2014-08-12 14:22:09199
[email protected]c14a6802014-07-11 21:51:12200 // ProfileSyncServiceObserver implementation:
dchengc072fff2014-10-21 11:39:05201 void OnStateChanged() override;
[email protected]0850e842013-01-19 03:44:31202
[email protected]dfddd022013-07-10 17:29:48203 // chrome::BrowserListObserver implementation:
dchengc072fff2014-10-21 11:39:05204 void OnBrowserSetLastActive(Browser* browser) override;
[email protected]dfddd022013-07-10 17:29:48205
[email protected]0850e842013-01-19 03:44:31206 private:
[email protected]cce15bb2014-06-17 13:43:51207 friend class SupervisedUserServiceExtensionTestBase;
208 friend class SupervisedUserServiceFactory;
pvalenzuelac2ca4582014-10-14 19:24:57209 FRIEND_TEST_ALL_PREFIXES(SingleClientSupervisedUserSettingsSyncTest, Sanity);
[email protected]cce15bb2014-06-17 13:43:51210 FRIEND_TEST_ALL_PREFIXES(SupervisedUserServiceTest, ClearOmitOnRegistration);
fhorschig1f351f02014-09-30 12:30:22211 FRIEND_TEST_ALL_PREFIXES(SupervisedUserServiceTest,
212 ChangesIncludedSessionOnChangedSettings);
213 FRIEND_TEST_ALL_PREFIXES(SupervisedUserServiceTest,
214 ChangesSyncSessionStateOnChangedSettings);
[email protected]cce15bb2014-06-17 13:43:51215 // A bridge from the UI thread to the SupervisedUserURLFilters, one of which
216 // lives on the IO thread. This class mediates access to them and makes sure
217 // they are kept in sync.
[email protected]0850e842013-01-19 03:44:31218 class URLFilterContext {
219 public:
220 URLFilterContext();
221 ~URLFilterContext();
222
[email protected]cce15bb2014-06-17 13:43:51223 SupervisedUserURLFilter* ui_url_filter() const;
224 SupervisedUserURLFilter* io_url_filter() const;
[email protected]0850e842013-01-19 03:44:31225
226 void SetDefaultFilteringBehavior(
[email protected]cce15bb2014-06-17 13:43:51227 SupervisedUserURLFilter::FilteringBehavior behavior);
228 void LoadWhitelists(ScopedVector<SupervisedUserSiteList> site_lists);
treib4edbded2014-09-05 08:43:55229 void LoadBlacklist(const base::FilePath& path);
[email protected]5e022292013-02-06 16:42:17230 void SetManualHosts(scoped_ptr<std::map<std::string, bool> > host_map);
231 void SetManualURLs(scoped_ptr<std::map<GURL, bool> > url_map);
[email protected]0850e842013-01-19 03:44:31232
treib9e4fab902014-10-29 14:25:26233 void InitAsyncURLChecker(net::URLRequestContextGetter* context,
treibe81fd0f2014-11-24 12:35:48234 const std::string& cx);
treib9e4fab902014-10-29 14:25:26235
[email protected]0850e842013-01-19 03:44:31236 private:
treib4edbded2014-09-05 08:43:55237 void OnBlacklistLoaded();
238
[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
[email protected]0085863a2013-12-06 21:19:03259 void OnCustodianProfileDownloaded(const base::string16& full_name);
[email protected]200729f82013-06-22 07:05:55260
[email protected]cce15bb2014-06-17 13:43:51261 void OnSupervisedUserRegistered(const AuthErrorCallback& callback,
262 Profile* custodian_profile,
263 const GoogleServiceAuthError& auth_error,
264 const std::string& token);
[email protected]acfcfbb2013-05-13 18:01:27265
[email protected]a243d644c2013-06-20 18:37:55266 void SetupSync();
[email protected]6e08b9a62014-07-08 00:32:48267 void StartSetupSync();
268 void FinishSetupSyncWhenReady();
269 void FinishSetupSync();
[email protected]a243d644c2013-06-20 18:37:55270
[email protected]cce15bb2014-06-17 13:43:51271 bool ProfileIsSupervised() const;
[email protected]e000daf2013-07-31 16:50:58272
treib3fce4e92014-09-26 16:06:25273 void OnCustodianInfoChanged();
274
[email protected]c14a6802014-07-11 21:51:12275#if defined(ENABLE_EXTENSIONS)
[email protected]0850e842013-01-19 03:44:31276 // Internal implementation for ExtensionManagementPolicy::Delegate methods.
277 // If |error| is not NULL, it will be filled with an error message if the
278 // requested extension action (install, modify status, etc.) is not permitted.
[email protected]38b7fb92013-07-26 16:32:26279 bool ExtensionManagementPolicyImpl(const extensions::Extension* extension,
[email protected]0085863a2013-12-06 21:19:03280 base::string16* error) const;
[email protected]0850e842013-01-19 03:44:31281
282 // Returns a list of all installed and enabled site lists in the current
[email protected]cce15bb2014-06-17 13:43:51283 // supervised profile.
284 ScopedVector<SupervisedUserSiteList> GetActiveSiteLists();
[email protected]0850e842013-01-19 03:44:31285
[email protected]c14a6802014-07-11 21:51:12286 // Extensions helper to SetActive().
287 void SetExtensionsActive();
288#endif
289
[email protected]cce15bb2014-06-17 13:43:51290 SupervisedUserSettingsService* GetSettingsService();
[email protected]e861bba2013-06-17 15:20:54291
bauerbd3a36cc42014-10-01 13:05:49292 size_t FindEnabledPermissionRequestCreator(size_t start);
bauerb646019b12014-10-16 16:23:09293 void AddAccessRequestInternal(const GURL& url,
294 const SuccessCallback& callback,
295 size_t index);
296 void OnPermissionRequestIssued(const GURL& url,
297 const SuccessCallback& callback,
298 size_t index,
299 bool success);
bauerbd3a36cc42014-10-01 13:05:49300
[email protected]cce15bb2014-06-17 13:43:51301 void OnSupervisedUserIdChanged();
[email protected]f085fdd52014-06-11 18:09:20302
[email protected]0850e842013-01-19 03:44:31303 void OnDefaultFilteringBehaviorChanged();
304
305 void UpdateSiteLists();
306
treibf136dfb2014-09-25 17:37:47307 // Asynchronously downloads a static blacklist file from |url|, stores it at
308 // |path|, loads it, and applies it to the URL filters. If |url| is not valid
309 // (e.g. empty), directly tries to load from |path|.
310 void LoadBlacklist(const base::FilePath& path, const GURL& url);
311
treib4edbded2014-09-05 08:43:55312 // Asynchronously loads a static blacklist from a binary file at |path| and
313 // applies it to the URL filters.
treibf136dfb2014-09-25 17:37:47314 void LoadBlacklistFromFile(const base::FilePath& path);
315
316 void OnBlacklistDownloadDone(const base::FilePath& path, bool success);
treib4edbded2014-09-05 08:43:55317
[email protected]5e022292013-02-06 16:42:17318 // Updates the manual overrides for hosts in the URL filters when the
319 // corresponding preference is changed.
320 void UpdateManualHosts();
[email protected]0850e842013-01-19 03:44:31321
[email protected]5e022292013-02-06 16:42:17322 // Updates the manual overrides for URLs in the URL filters when the
323 // corresponding preference is changed.
324 void UpdateManualURLs();
[email protected]0850e842013-01-19 03:44:31325
[email protected]0b4c6b22014-08-04 09:46:31326 // Returns the human readable name of the supervised user.
327 std::string GetSupervisedUserName() const;
328
fhorschig1f351f02014-09-30 12:30:22329 // Subscribes to the SupervisedUserPrefStore, refreshes
330 // |includes_sync_sessions_type_| and triggers reconfiguring the
331 // ProfileSyncService.
332 void OnHistoryRecordingStateChanged();
333
334 // Returns true if the syncer::SESSIONS type should be included in Sync.
335 bool IncludesSyncSessionsType() const;
336
337 // The option a custodian sets to either record or prevent recording the
338 // supervised user's history. Set by |FetchNewSessionSyncState()| and
339 // defaults to true.
340 bool includes_sync_sessions_type_;
341
[email protected]12b7af32014-03-13 05:28:20342 // Owns us via the KeyedService mechanism.
[email protected]0850e842013-01-19 03:44:31343 Profile* profile_;
344
[email protected]f085fdd52014-06-11 18:09:20345 bool active_;
346
347 Delegate* delegate_;
348
[email protected]c14a6802014-07-11 21:51:12349#if defined(ENABLE_EXTENSIONS)
[email protected]f2253ac2014-05-28 08:37:21350 ScopedObserver<extensions::ExtensionRegistry,
351 extensions::ExtensionRegistryObserver>
352 extension_registry_observer_;
[email protected]c14a6802014-07-11 21:51:12353#endif
[email protected]f2253ac2014-05-28 08:37:21354
[email protected]0850e842013-01-19 03:44:31355 PrefChangeRegistrar pref_change_registrar_;
356
[email protected]a243d644c2013-06-20 18:37:55357 // True iff we're waiting for the Sync service to be initialized.
358 bool waiting_for_sync_initialization_;
[email protected]dfddd022013-07-10 17:29:48359 bool is_profile_active_;
[email protected]a243d644c2013-06-20 18:37:55360
[email protected]438f7e12013-08-07 06:59:00361 std::vector<NavigationBlockedCallback> navigation_blocked_callbacks_;
362
[email protected]4f02aac12013-05-20 05:19:06363 // Sets a profile in elevated state for testing if set to true.
364 bool elevated_for_testing_;
[email protected]849749d2013-05-06 17:30:45365
[email protected]3a276ff2014-08-12 14:22:09366 // True only when |Init()| method has been called.
367 bool did_init_;
368
[email protected]3bf45d02013-07-10 00:03:41369 // True only when |Shutdown()| method has been called.
370 bool did_shutdown_;
371
[email protected]0850e842013-01-19 03:44:31372 URLFilterContext url_filter_context_;
treibf136dfb2014-09-25 17:37:47373 scoped_ptr<SupervisedUserBlacklistDownloader> blacklist_downloader_;
[email protected]8052b242013-11-15 16:40:55374
[email protected]4db65f952014-05-20 15:46:30375 // Used to create permission requests.
bauerbd3a36cc42014-10-01 13:05:49376 ScopedVector<PermissionRequestCreator> permissions_creators_;
[email protected]4db65f952014-05-20 15:46:30377
treibab0a39e2014-09-24 14:48:28378 ObserverList<SupervisedUserServiceObserver> observer_list_;
379
[email protected]cce15bb2014-06-17 13:43:51380 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_;
[email protected]0850e842013-01-19 03:44:31381};
382
[email protected]cce15bb2014-06-17 13:43:51383#endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_