Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1317)

Unified Diff: content/public/browser/render_frame_host.h

Issue 2059533002: Change WebContentsDelegate::RunFileChooser to be frame based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index 980704cf16b18af25807b656539ea3bc0105cdc3..e5d8841a4b3334de291855458d817e77950cdbe6 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -11,6 +11,7 @@
#include "build/build_config.h"
#include "content/common/content_export.h"
#include "content/public/common/console_message_level.h"
+#include "content/public/common/file_chooser_params.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
@@ -29,6 +30,7 @@ class RenderViewHost;
class RenderWidgetHostView;
class ServiceRegistry;
class SiteInstance;
+struct FileChooserFileInfo;
// The interface provides a communication conduit with a frame in the renderer.
class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
@@ -181,6 +183,13 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// use by resource metrics.
virtual int GetProxyCount() = 0;
+ // Notifies the Listener that one or more files have been chosen by the user
+ // from a file chooser dialog for the form. |permissions| is the file
+ // selection mode in which the chooser dialog was created.
+ virtual void FilesSelectedInChooser(
+ const std::vector<content::FileChooserFileInfo>& files,
+ FileChooserParams::Mode permissions) = 0;
+
private:
// This interface should only be implemented inside content.
friend class RenderFrameHostImpl;
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698