| Index: chrome/browser/renderer_host/render_view_host_delegate.h
|
| ===================================================================
|
| --- chrome/browser/renderer_host/render_view_host_delegate.h (revision 57114)
|
| +++ chrome/browser/renderer_host/render_view_host_delegate.h (working copy)
|
| @@ -598,6 +598,19 @@
|
| virtual ~SSL() {}
|
| };
|
|
|
| + // FileSelect ----------------------------------------------------------------
|
| + // Interface for handling file selection.
|
| +
|
| + class FileSelect {
|
| + public:
|
| + // A file chooser should be shown.
|
| + virtual void RunFileChooser(
|
| + const ViewHostMsg_RunFileChooser_Params& params) = 0;
|
| +
|
| + protected:
|
| + virtual ~FileSelect() {}
|
| + };
|
| +
|
| // ---------------------------------------------------------------------------
|
|
|
| // Returns the current delegate associated with a feature. May return NULL if
|
| @@ -615,6 +628,7 @@
|
| virtual BookmarkDrag* GetBookmarkDragDelegate();
|
| virtual BlockedPlugin* GetBlockedPluginDelegate();
|
| virtual SSL* GetSSLDelegate();
|
| + virtual FileSelect* GetFileSelectDelegate();
|
|
|
| // Return the delegate for registering RenderViewHosts for automation resource
|
| // routing.
|
| @@ -726,10 +740,6 @@
|
| const std::string& origin,
|
| const std::string& target) {}
|
|
|
| - // A file chooser should be shown.
|
| - virtual void RunFileChooser(
|
| - const ViewHostMsg_RunFileChooser_Params& params) {}
|
| -
|
| // A javascript message, confirmation or prompt should be shown.
|
| virtual void RunJavaScriptMessage(const std::wstring& message,
|
| const std::wstring& default_prompt,
|
|
|