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

Unified Diff: chrome/browser/ui/webui/options/managed_user_settings_handler.h

Issue 12594029: Create interface to manage manual exceptions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Load the overlay only when managed users are available. Created 7 years, 8 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/ui/webui/options/managed_user_settings_handler.h
diff --git a/chrome/browser/ui/webui/options/managed_user_settings_handler.h b/chrome/browser/ui/webui/options/managed_user_settings_handler.h
index c83ed85b6c4be9ccf6f39de219b3b4f5463150b6..83639d78dd05f55266bf40440c28e9b6b8726fe4 100644
--- a/chrome/browser/ui/webui/options/managed_user_settings_handler.h
+++ b/chrome/browser/ui/webui/options/managed_user_settings_handler.h
@@ -8,6 +8,7 @@
#include "base/prefs/pref_change_registrar.h"
#include "base/time.h"
#include "base/values.h"
+#include "chrome/browser/managed_mode/managed_user_service.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
namespace options {
@@ -35,6 +36,28 @@ class ManagedUserSettingsHandler : public OptionsPageUIHandler {
// Called when the local passphrase changes.
void OnLocalPassphraseChanged();
+ // Decides whether a given pattern is valid, or if it should be
+ // rejected. Called while the user is editing an exception pattern.
+ void CheckManualExceptionValidity(const base::ListValue* args);
+
+ // Sets the manual behavior for |pattern|. If pattern looks like a host (no
+ // schema) then update the manual host list, otherwise update the manual
+ // URL list.
+ void UpdateManualBehavior(std::string pattern,
+ ManagedUserService::ManualBehavior behavior);
+
+ // Removes the given row from the table. The first entry in |args| is
+ // the pattern to remove.
+ void RemoveManualException(const base::ListValue* args);
+
+ // Changes the value of an exception. Called after the user is done editing an
+ // exception.
+ void SetManualException(const base::ListValue* args);
+
+ // Updates the current view by reading the entries from the managed mode
+ // service and updating the WebUI model.
+ void UpdateViewFromModel();
+
// For tracking how long the user spends on this page.
base::TimeTicks start_time_;
« no previous file with comments | « chrome/browser/resources/options/options_bundle.js ('k') | chrome/browser/ui/webui/options/managed_user_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698