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

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

Issue 18129002: Update the child process security policy to use explicit permission grants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change RVH to use FileChooserParam mode Created 7 years, 5 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/public/browser/child_process_security_policy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_view_host.h
diff --git a/content/public/browser/render_view_host.h b/content/public/browser/render_view_host.h
index 20032c1a03be8c991ce5b24ffefbfddd3cc78552..2ade019e50567f8d9ab95fe2a7ce52dd614231e1 100644
--- a/content/public/browser/render_view_host.h
+++ b/content/public/browser/render_view_host.h
@@ -8,6 +8,7 @@
#include "base/callback_forward.h"
#include "content/common/content_export.h"
#include "content/public/browser/render_widget_host.h"
+#include "content/public/common/file_chooser_params.h"
#include "content/public/common/page_zoom.h"
#include "content/public/common/stop_find_action.h"
#include "third_party/WebKit/public/web/WebDragOperation.h"
@@ -210,12 +211,11 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0;
// Notifies the Listener that one or more files have been chosen by the user
- // from a file chooser dialog for the form. |permissions| are flags from the
- // base::PlatformFileFlags enum which specify which file permissions should
- // be granted to the renderer.
+ // 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<ui::SelectedFileInfo>& files,
- int permissions) = 0;
+ FileChooserParams::Mode permissions) = 0;
virtual RenderViewHostDelegate* GetDelegate() const = 0;
« no previous file with comments | « content/public/browser/child_process_security_policy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698