Index: chrome/browser/ui/select_file_dialog_extension.h |
diff --git a/chrome/browser/ui/select_file_dialog_extension.h b/chrome/browser/ui/select_file_dialog_extension.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f59d8f8183e6ab2d1fb6a52eb9359ca11caf7e8d |
--- /dev/null |
+++ b/chrome/browser/ui/select_file_dialog_extension.h |
@@ -0,0 +1,34 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_ |
+#define CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_ |
+ |
+#include <vector> |
+ |
+#include "base/basictypes.h" |
+ |
+namespace ui { |
+struct SelectedFileInfo; |
+} |
+ |
+class SelectFileDialogExtension { |
+ public: |
+ // Routes callback to appropriate SelectFileDialog::Listener based on |
+ // the owning |tab_id|. |
+ static void OnFileSelected(int32 tab_id, |
+ const ui::SelectedFileInfo& file, |
+ int index); |
+ |
+ static void OnMultiFilesSelected( |
+ int32 tab_id, |
+ const std::vector<ui::SelectedFileInfo>& files); |
+ |
+ static void OnFileSelectionCanceled(int32 tab_id); |
+ |
+ private: |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(SelectFileDialogExtension); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_SELECT_FILE_DIALOG_EXTENSION_H_ |