Index: chrome/browser/managed_mode/managed_user_service.h |
diff --git a/chrome/browser/managed_mode/managed_user_service.h b/chrome/browser/managed_mode/managed_user_service.h |
index 6dbcfa2210c8fa47980255ed904a9112f93ce7db..3225f393837fb86896020960323159ef56c4c906 100644 |
--- a/chrome/browser/managed_mode/managed_user_service.h |
+++ b/chrome/browser/managed_mode/managed_user_service.h |
@@ -45,6 +45,9 @@ class ManagedUserService : public ProfileKeyedService, |
bool ProfileIsManaged() const; |
bool IsElevated() const; |
+ // Returns the elevation state for specific WebContents. |
+ bool IsElevatedForWebContents(const content::WebContents* web_contents) const; |
+ |
static void RegisterUserPrefs(PrefRegistrySyncable* registry); |
// Returns the URL filter for the IO thread, for filtering network requests |
@@ -85,6 +88,13 @@ class ManagedUserService : public ProfileKeyedService, |
// elevated state or the passphrase is empty). |
bool CanSkipPassphraseDialog(); |
+ // Checks if the passphrase dialog can be skipped (the profile is already in |
+ // elevated state for the given WebContents or the passphrase is empty). |
+ bool CanSkipPassphraseDialog(const content::WebContents* web_contents) const; |
+ |
+ // Returns if the passphrase to authorize as the custodian is empty. |
+ bool IsPassphraseEmpty() const; |
+ |
// Handles the request to authorize as the custodian of the managed user. |
void RequestAuthorization(content::WebContents* web_contents, |
const PassphraseCheckedCallback& callback); |
@@ -96,6 +106,7 @@ class ManagedUserService : public ProfileKeyedService, |
Browser* browser, |
const PassphraseCheckedCallback& callback); |
+ // Set the elevation state for the profile. |
void SetElevated(bool is_elevated); |
// Add an elevation for a specific extension which allows the managed user to |