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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2067493003: Moving (Can|Grant)AccessFilesOfPageState into RenderFrameHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@grant-file-access-after-transfer
Patch Set: Pulling in some changes that got removed from the dependent CL. 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
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 3dec6971a67e6939df84bf7609e2f213ff34bd4c..990d305268b2abe1fc27ef6b7df7f825ecdc0c10 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -732,6 +732,16 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// Informs the content client that geolocation permissions were used.
void DidUseGeolocationPermission();
+ // Returns whether the current RenderProcessHost has read access to all the
+ // files reported in |state|.
+ bool CanAccessFilesOfPageState(const PageState& state);
+
+ // Grants the current RenderProcessHost read access to any file listed in
+ // |validated_state|. It is important that the PageState has been validated
+ // upon receipt from the renderer process to prevent it from forging access to
+ // files without the user's consent.
+ void GrantFileAccessFromPageState(const PageState& validated_state);
+
// Grants the current RenderProcessHost read access to any file listed in
// |body|. It is important that the ResourceRequestBody has been validated
// upon receipt from the renderer process to prevent it from forging access to

Powered by Google App Engine
This is Rietveld 408576698