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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
7
8 #include <string>
9
10 #include "base/prefs/public/pref_change_registrar.h"
11 #include "chrome/browser/ui/webui/options/options_ui.h"
12
13 namespace base {
14 class ListValue;
15 }
16
17 namespace options {
18
19 class ManagedUserPassphraseHandler : public OptionsPageUIHandler {
20 public:
21 ManagedUserPassphraseHandler();
22 virtual ~ManagedUserPassphraseHandler();
Bernhard Bauer 2013/01/07 14:20:22 Newline pls.
23 virtual void InitializeHandler() OVERRIDE;
Bernhard Bauer 2013/01/07 14:20:22 Please add a comment stating which class you overr
24 virtual void RegisterMessages() OVERRIDE;
25
26 // OptionsPageUIHandler implementation.
27 virtual void GetLocalizedValues(
28 base::DictionaryValue* localized_strings) OVERRIDE;
29
30 private:
31 void DisplayPassphraseDialog(const base::ListValue* args);
32 void OnPreferenceChanged();
33 void SetLocalPassphrase(const base::ListValue* args);
34 void CorrectPassphraseEntered();
Bernhard Bauer 2013/01/07 14:20:22 Moar newlinez!!!11!oneone
35 std::string callback_function_name_;
36 PrefChangeRegistrar registrar_;
37 DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphraseHandler);
38 };
39
40 } // namespace options
41
42 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698