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

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: Several fixes 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/memory/weak_ptr.h"
11 #include "base/prefs/public/pref_change_registrar.h"
12 #include "chrome/browser/ui/webui/options/options_ui.h"
13
14 namespace base {
15 class ListValue;
16 }
17
18 namespace options {
19
20 class ManagedUserPassphraseHandler : public OptionsPageUIHandler {
21 public:
22 ManagedUserPassphraseHandler();
23 virtual ~ManagedUserPassphraseHandler();
24
25 // OptionsPageUIHandler implementation.
26 virtual void InitializeHandler() OVERRIDE;
27 virtual void RegisterMessages() OVERRIDE;
28 virtual void GetLocalizedValues(
29 base::DictionaryValue* localized_strings) OVERRIDE;
30
31 private:
32 void DisplayPassphraseDialog(const base::ListValue* args);
33 void SetLocalPassphrase(const base::ListValue* args);
34 void PassphraseDialogCallback(bool success);
35
36 std::string callback_function_name_;
37 base::WeakPtrFactory<ManagedUserPassphraseHandler> weak_ptr_factory_;
38
39 DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphraseHandler);
40 };
41
42 } // namespace options
43
44 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698