| 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
|
|
|