| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_FILE_SELECT_HELPER_H_ | 5 #ifndef CHROME_BROWSER_FILE_SELECT_HELPER_H_ |
| 6 #define CHROME_BROWSER_FILE_SELECT_HELPER_H_ | 6 #define CHROME_BROWSER_FILE_SELECT_HELPER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "chrome/browser/ui/select_file_dialog.h" | 13 #include "chrome/browser/ui/select_file_dialog.h" |
| 14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
| 15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
| 16 #include "net/base/directory_lister.h" | 16 #include "net/base/directory_lister.h" |
| 17 | 17 |
| 18 class Profile; | 18 class Profile; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class RenderViewHost; | 21 class RenderViewHost; |
| 22 class WebContents; |
| 22 struct FileChooserParams; | 23 struct FileChooserParams; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace ui { | 26 namespace ui { |
| 26 struct SelectedFileInfo; | 27 struct SelectedFileInfo; |
| 27 } | 28 } |
| 28 | 29 |
| 29 // This class handles file-selection requests coming from WebUI elements | 30 // This class handles file-selection requests coming from WebUI elements |
| 30 // (via the ExtensionHost class). It implements both the initialisation | 31 // (via the ExtensionHost class). It implements both the initialisation |
| 31 // and listener functions for file-selection dialogs. | 32 // and listener functions for file-selection dialogs. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 struct ActiveDirectoryEnumeration; | 158 struct ActiveDirectoryEnumeration; |
| 158 std::map<int, ActiveDirectoryEnumeration*> directory_enumerations_; | 159 std::map<int, ActiveDirectoryEnumeration*> directory_enumerations_; |
| 159 | 160 |
| 160 // Registrar for notifications regarding our RenderViewHost. | 161 // Registrar for notifications regarding our RenderViewHost. |
| 161 content::NotificationRegistrar notification_registrar_; | 162 content::NotificationRegistrar notification_registrar_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(FileSelectHelper); | 164 DISALLOW_COPY_AND_ASSIGN(FileSelectHelper); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 #endif // CHROME_BROWSER_FILE_SELECT_HELPER_H_ | 167 #endif // CHROME_BROWSER_FILE_SELECT_HELPER_H_ |
| OLD | NEW |