| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 elevated_for_testing_ = skip; | 151 elevated_for_testing_ = skip; |
| 152 } | 152 } |
| 153 | 153 |
| 154 void AddNavigationBlockedCallback(const NavigationBlockedCallback& callback); | 154 void AddNavigationBlockedCallback(const NavigationBlockedCallback& callback); |
| 155 void DidBlockNavigation(content::WebContents* web_contents); | 155 void DidBlockNavigation(content::WebContents* web_contents); |
| 156 | 156 |
| 157 #if defined(ENABLE_EXTENSIONS) | 157 #if defined(ENABLE_EXTENSIONS) |
| 158 // extensions::ManagementPolicy::Provider implementation: | 158 // extensions::ManagementPolicy::Provider implementation: |
| 159 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; | 159 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; |
| 160 virtual bool UserMayLoad(const extensions::Extension* extension, | 160 virtual bool UserMayLoad(const extensions::Extension* extension, |
| 161 int install_flags, |
| 161 base::string16* error) const OVERRIDE; | 162 base::string16* error) const OVERRIDE; |
| 162 virtual bool UserMayModifySettings(const extensions::Extension* extension, | 163 virtual bool UserMayModifySettings(const extensions::Extension* extension, |
| 163 base::string16* error) const OVERRIDE; | 164 base::string16* error) const OVERRIDE; |
| 164 | 165 |
| 165 // extensions::ExtensionRegistryObserver implementation. | 166 // extensions::ExtensionRegistryObserver implementation. |
| 166 virtual void OnExtensionLoaded( | 167 virtual void OnExtensionLoaded( |
| 167 content::BrowserContext* browser_context, | 168 content::BrowserContext* browser_context, |
| 168 const extensions::Extension* extension) OVERRIDE; | 169 const extensions::Extension* extension) OVERRIDE; |
| 169 virtual void OnExtensionUnloaded( | 170 virtual void OnExtensionUnloaded( |
| 170 content::BrowserContext* browser_context, | 171 content::BrowserContext* browser_context, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // Used to create permission requests. | 297 // Used to create permission requests. |
| 297 scoped_ptr<PermissionRequestCreator> permissions_creator_; | 298 scoped_ptr<PermissionRequestCreator> permissions_creator_; |
| 298 | 299 |
| 299 // True iff we are waiting for a permission request to be issued. | 300 // True iff we are waiting for a permission request to be issued. |
| 300 bool waiting_for_permissions_; | 301 bool waiting_for_permissions_; |
| 301 | 302 |
| 302 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; | 303 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; |
| 303 }; | 304 }; |
| 304 | 305 |
| 305 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 306 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
| OLD | NEW |