OLD | NEW |
| (Empty) |
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 | |
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 "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(); | |
23 | |
24 // OptionsPageUIHandler implementation. | |
25 virtual void InitializeHandler() OVERRIDE; | |
26 virtual void RegisterMessages() OVERRIDE; | |
27 virtual void GetLocalizedValues( | |
28 base::DictionaryValue* localized_strings) OVERRIDE; | |
29 | |
30 private: | |
31 // This function is used to set the passphrase of the manager of the managed | |
32 // account. The passphrase is expected as the parameter and is passed in from | |
33 // the UI. | |
34 void SetLocalPassphrase(const base::ListValue* args); | |
35 | |
36 base::WeakPtrFactory<ManagedUserPassphraseHandler> weak_ptr_factory_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphraseHandler); | |
39 }; | |
40 | |
41 } // namespace options | |
42 | |
43 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_ | |
OLD | NEW |