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

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

Issue 11783008: Add a lock to the managed user settings page and require authentication for unlocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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_passphrase_handler.h
diff --git a/chrome/browser/ui/webui/options/managed_user_passphrase_handler.h b/chrome/browser/ui/webui/options/managed_user_passphrase_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..45ba04b4a6f8411dd85e72f2614cfafbabb23715
--- /dev/null
+++ b/chrome/browser/ui/webui/options/managed_user_passphrase_handler.h
@@ -0,0 +1,42 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
+
+#include <string>
+
+#include "base/prefs/public/pref_change_registrar.h"
+#include "chrome/browser/ui/webui/options/options_ui.h"
+
+namespace base {
+class ListValue;
+}
+
+namespace options {
+
+class ManagedUserPassphraseHandler : public OptionsPageUIHandler {
+ public:
+ ManagedUserPassphraseHandler();
+ virtual ~ManagedUserPassphraseHandler();
Bernhard Bauer 2013/01/07 14:20:22 Newline pls.
+ virtual void InitializeHandler() OVERRIDE;
Bernhard Bauer 2013/01/07 14:20:22 Please add a comment stating which class you overr
+ virtual void RegisterMessages() OVERRIDE;
+
+ // OptionsPageUIHandler implementation.
+ virtual void GetLocalizedValues(
+ base::DictionaryValue* localized_strings) OVERRIDE;
+
+ private:
+ void DisplayPassphraseDialog(const base::ListValue* args);
+ void OnPreferenceChanged();
+ void SetLocalPassphrase(const base::ListValue* args);
+ void CorrectPassphraseEntered();
Bernhard Bauer 2013/01/07 14:20:22 Moar newlinez!!!11!oneone
+ std::string callback_function_name_;
+ PrefChangeRegistrar registrar_;
+ DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphraseHandler);
+};
+
+} // namespace options
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698