| OLD | NEW | 
|---|
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_SETTINGS_DOWNLOADS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_DOWNLOADS_HANDLER_H_ | 
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_DOWNLOADS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_DOWNLOADS_HANDLER_H_ | 
| 7 | 7 | 
| 8 #include <memory> | 8 #include <memory> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| 11 #include "base/macros.h" | 11 #include "base/macros.h" | 
| 12 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 12 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 
| 13 #include "ui/shell_dialogs/select_file_dialog.h" | 13 #include "ui/shell_dialogs/select_file_dialog.h" | 
| 14 | 14 | 
| 15 namespace base { |  | 
| 16 class Value; |  | 
| 17 } |  | 
| 18 |  | 
| 19 namespace settings { | 15 namespace settings { | 
| 20 | 16 | 
| 21 // Chrome "Downloads" settings page UI handler. | 17 // Chrome "Downloads" settings page UI handler. | 
| 22 class DownloadsHandler : public SettingsPageUIHandler, | 18 class DownloadsHandler : public SettingsPageUIHandler, | 
| 23                          public ui::SelectFileDialog::Listener { | 19                          public ui::SelectFileDialog::Listener { | 
| 24  public: | 20  public: | 
| 25   DownloadsHandler(); | 21   DownloadsHandler(); | 
| 26   ~DownloadsHandler() override; | 22   ~DownloadsHandler() override; | 
| 27 | 23 | 
| 28   // SettingsPageUIHandler implementation. | 24   // SettingsPageUIHandler implementation. | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 41   void HandleSelectDownloadLocation(const base::ListValue* args); | 37   void HandleSelectDownloadLocation(const base::ListValue* args); | 
| 42 | 38 | 
| 43   scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; | 39   scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; | 
| 44 | 40 | 
| 45   DISALLOW_COPY_AND_ASSIGN(DownloadsHandler); | 41   DISALLOW_COPY_AND_ASSIGN(DownloadsHandler); | 
| 46 }; | 42 }; | 
| 47 | 43 | 
| 48 }  // namespace settings | 44 }  // namespace settings | 
| 49 | 45 | 
| 50 #endif  // CHROME_BROWSER_UI_WEBUI_SETTINGS_DOWNLOADS_HANDLER_H_ | 46 #endif  // CHROME_BROWSER_UI_WEBUI_SETTINGS_DOWNLOADS_HANDLER_H_ | 
| OLD | NEW | 
|---|