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

Side by Side Diff: chrome/browser/managed_mode/managed_user_service.h

Issue 12208068: Add a set passphrase dialog for managed user accounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix year in new files. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/prefs/public/pref_change_registrar.h" 10 #include "base/prefs/public/pref_change_registrar.h"
(...skipping 22 matching lines...) Expand all
33 MANUAL_NONE = 0, 33 MANUAL_NONE = 0,
34 MANUAL_ALLOW, 34 MANUAL_ALLOW,
35 MANUAL_BLOCK 35 MANUAL_BLOCK
36 }; 36 };
37 37
38 explicit ManagedUserService(Profile* profile); 38 explicit ManagedUserService(Profile* profile);
39 virtual ~ManagedUserService(); 39 virtual ~ManagedUserService();
40 40
41 bool ProfileIsManaged() const; 41 bool ProfileIsManaged() const;
42 42
43 bool IsElevated() const;
44
43 static void RegisterUserPrefs(PrefServiceSyncable* prefs); 45 static void RegisterUserPrefs(PrefServiceSyncable* prefs);
44 46
45 // Returns the URL filter for the IO thread, for filtering network requests 47 // Returns the URL filter for the IO thread, for filtering network requests
46 // (in ManagedModeResourceThrottle). 48 // (in ManagedModeResourceThrottle).
47 scoped_refptr<const ManagedModeURLFilter> GetURLFilterForIOThread(); 49 scoped_refptr<const ManagedModeURLFilter> GetURLFilterForIOThread();
48 50
49 // Returns the URL filter for the UI thread, for filtering navigations and 51 // Returns the URL filter for the UI thread, for filtering navigations and
50 // classifying sites in the history view. 52 // classifying sites in the history view.
51 ManagedModeURLFilter* GetURLFilterForUIThread(); 53 ManagedModeURLFilter* GetURLFilterForUIThread();
52 54
(...skipping 16 matching lines...) Expand all
69 void SetManualBehaviorForHosts(const std::vector<std::string>& hostnames, 71 void SetManualBehaviorForHosts(const std::vector<std::string>& hostnames,
70 ManualBehavior behavior); 72 ManualBehavior behavior);
71 73
72 // Returns the manual behavior for the given URL. 74 // Returns the manual behavior for the given URL.
73 ManualBehavior GetManualBehaviorForURL(const GURL& url); 75 ManualBehavior GetManualBehaviorForURL(const GURL& url);
74 76
75 // Sets the manual behavior for the given URL. 77 // Sets the manual behavior for the given URL.
76 void SetManualBehaviorForURLs(const std::vector<GURL>& url, 78 void SetManualBehaviorForURLs(const std::vector<GURL>& url,
77 ManualBehavior behavior); 79 ManualBehavior behavior);
78 80
79 void SetElevatedForTesting(bool is_elevated); 81 void SetElevated(bool is_elevated);
80 82
81 // Initializes this object. This method does nothing if the profile is not 83 // Initializes this object. This method does nothing if the profile is not
82 // managed. This method only needs to be called if the profile is set to be 84 // managed. This method only needs to be called if the profile is set to be
83 // managed after the ManagedUserService has been created (which happens when 85 // managed after the ManagedUserService has been created (which happens when
84 // creating a new profile). 86 // creating a new profile).
85 void Init(); 87 void Init();
86 88
87 // ExtensionManagementPolicy::Provider implementation: 89 // ExtensionManagementPolicy::Provider implementation:
88 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; 90 virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
89 virtual bool UserMayLoad(const extensions::Extension* extension, 91 virtual bool UserMayLoad(const extensions::Extension* extension,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // example). 160 // example).
159 bool is_elevated_; 161 bool is_elevated_;
160 162
161 content::NotificationRegistrar registrar_; 163 content::NotificationRegistrar registrar_;
162 PrefChangeRegistrar pref_change_registrar_; 164 PrefChangeRegistrar pref_change_registrar_;
163 165
164 URLFilterContext url_filter_context_; 166 URLFilterContext url_filter_context_;
165 }; 167 };
166 168
167 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ 169 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698