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

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: Sync and move scoped_ptr include to subclass header files. 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
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..4083d256666d1a3184e0d6f955026da000ab9093 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(const GoogleServiceAuthError& error);
+
// 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_;
};

Powered by Google App Engine
This is Rietveld 408576698