| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_PASSWORD_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "chrome/browser/ui/passwords/password_manager_presenter.h" | 16 #include "chrome/browser/ui/passwords/password_manager_presenter.h" |
| 17 #include "chrome/browser/ui/passwords/password_ui_view.h" | 17 #include "chrome/browser/ui/passwords/password_ui_view.h" |
| 18 #include "chrome/browser/ui/webui/options/options_ui.h" | 18 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 19 #include "components/password_manager/core/browser/import/password_importer.h" | 19 #include "components/password_manager/core/browser/import/password_importer.h" |
| 20 #include "components/prefs/pref_member.h" | 20 #include "components/prefs/pref_member.h" |
| 21 #include "ui/shell_dialogs/select_file_dialog.h" | 21 #include "ui/shell_dialogs/select_file_dialog.h" |
| 22 | 22 |
| 23 class PasswordManagerHandlerTest; | |
| 24 | |
| 25 namespace options { | 23 namespace options { |
| 26 | 24 |
| 27 // The WebUI based PasswordUIView. Displays passwords in the web ui. | 25 // The WebUI based PasswordUIView. Displays passwords in the web ui. |
| 28 class PasswordManagerHandler : public OptionsPageUIHandler, | 26 class PasswordManagerHandler : public OptionsPageUIHandler, |
| 29 public PasswordUIView, | 27 public PasswordUIView, |
| 30 public ui::SelectFileDialog::Listener { | 28 public ui::SelectFileDialog::Listener { |
| 31 public: | 29 public: |
| 32 // Enumeration of different callers of SelectFile. | 30 // Enumeration of different callers of SelectFile. |
| 33 enum FileSelectorCaller { | 31 enum FileSelectorCaller { |
| 34 IMPORT_FILE_SELECTED, | 32 IMPORT_FILE_SELECTED, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 129 |
| 132 // File picker to import/export file path. | 130 // File picker to import/export file path. |
| 133 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; | 131 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; |
| 134 | 132 |
| 135 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); | 133 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); |
| 136 }; | 134 }; |
| 137 | 135 |
| 138 } // namespace options | 136 } // namespace options |
| 139 | 137 |
| 140 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 138 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
| OLD | NEW |