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

Unified Diff: chrome/browser/managed_mode/managed_user_service.h

Issue 288913003: Add permission request creator class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Run git cl format. Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 427db2e28ffc683b29977d73c8526106f1e79a3d..aac1df566537c79dadcdf728c96f9c08a3acf59a 100644
--- a/chrome/browser/managed_mode/managed_user_service.h
+++ b/chrome/browser/managed_mode/managed_user_service.h
@@ -28,6 +28,7 @@ class ManagedModeURLFilter;
class ManagedModeSiteList;
class ManagedUserRegistrationUtility;
class ManagedUserSettingsService;
+class PermissionRequestCreator;
class Profile;
namespace user_prefs {
@@ -81,6 +82,8 @@ class ManagedUserService : public KeyedService,
// Whether the user can request access to blocked URLs.
bool AccessRequestsEnabled();
+ void OnPermissionRequestIssued();
+
// Adds an access request for the given URL. The requests are stored using
// a prefix followed by a URIEncoded version of the URL. Each entry contains
// a dictionary which currently has the timestamp of the request in it.
@@ -244,6 +247,12 @@ class ManagedUserService : public KeyedService,
URLFilterContext url_filter_context_;
+ // Used to create permission requests.
+ scoped_ptr<PermissionRequestCreator> permissions_creator_;
+
+ // True iff we are waiting for a permission request to be issued.
+ bool waiting_for_permissions_;
+
base::WeakPtrFactory<ManagedUserService> weak_ptr_factory_;
};
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698