OLD | NEW |
(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 "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 void DisplayPassphraseDialog(const base::ListValue* args); |
| 32 void SetLocalPassphrase(const base::ListValue* args); |
| 33 void PassphraseDialogCallback(bool success); |
| 34 void EndAuthentication(const base::ListValue* args); |
| 35 void IsPassphraseSet(const base::ListValue* args); |
| 36 |
| 37 std::string callback_function_name_; |
| 38 base::WeakPtrFactory<ManagedUserPassphraseHandler> weak_ptr_factory_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(ManagedUserPassphraseHandler); |
| 41 }; |
| 42 |
| 43 } // namespace options |
| 44 |
| 45 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGED_USER_PASSPHRASE_HANDLER_H_ |
OLD | NEW |