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

Side by Side Diff: chrome/browser/ui/webui/options/managed_user_passphrase_handler.h

Issue 14325003: Clean up managed user settings dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix broken merge 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 24 matching lines...) Expand all
35 // Changes the elevation state of the managed user. Before changing the 35 // Changes the elevation state of the managed user. Before changing the
36 // elevation state to true, the passphrase dialog is displayed where the 36 // elevation state to true, the passphrase dialog is displayed where the
37 // manager of the managed account can enter the passphrase which allows him 37 // manager of the managed account can enter the passphrase which allows him
38 // to modify the settings. It expects as parameter the new elevation state. 38 // to modify the settings. It expects as parameter the new elevation state.
39 void SetElevated(const base::ListValue* args); 39 void SetElevated(const base::ListValue* args);
40 40
41 // Calls the UI with the result of the authentication. |success| is true if 41 // Calls the UI with the result of the authentication. |success| is true if
42 // the authentication was successful. 42 // the authentication was successful.
43 void PassphraseDialogCallback(bool success); 43 void PassphraseDialogCallback(bool success);
44 44
45 // Checks if there is already a passphrase specified. It expects as parameter
46 // the name of the Javascript function which should be called with the results
47 // of this check.
48 void IsPassphraseSet(const base::ListValue* args);
49
50 // Resets the passphrase to the empty string.
51 void ResetPassphrase(const base::ListValue* args);
52
53 // The name of the Javascript function which should be called after the 45 // The name of the Javascript function which should be called after the
54 // passphrase has been checked. 46 // passphrase has been checked.
55 std::string callback_function_name_; 47 std::string callback_function_name_;
56 base::WeakPtrFactory<ManagedUserPassphraseHandler> weak_ptr_factory_; 48 base::WeakPtrFactory<ManagedUserPassphraseHandler> weak_ptr_factory_;
57 49
58 DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphraseHandler); 50 DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphraseHandler);
59 }; 51 };
60 52
61 } // namespace options 53 } // namespace options
62 54
63 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_ 55 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698