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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2080223002: Revert of Fixing renderer's access to a file from HTTP POST (after a xsite transfer). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 bool CanCommitOrigin(const url::Origin& origin, const GURL& url); 725 bool CanCommitOrigin(const url::Origin& origin, const GURL& url);
726 726
727 // Asserts that the given RenderFrameHostImpl is part of the same browser 727 // Asserts that the given RenderFrameHostImpl is part of the same browser
728 // context (and crashes if not), then returns whether the given frame is 728 // context (and crashes if not), then returns whether the given frame is
729 // part of the same site instance. 729 // part of the same site instance.
730 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); 730 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host);
731 731
732 // Informs the content client that geolocation permissions were used. 732 // Informs the content client that geolocation permissions were used.
733 void DidUseGeolocationPermission(); 733 void DidUseGeolocationPermission();
734 734
735 // Grants the current RenderProcessHost read access to any file listed in
736 // |body|. It is important that the ResourceRequestBody has been validated
737 // upon receipt from the renderer process to prevent it from forging access to
738 // files without the user's consent.
739 void GrantFileAccessFromResourceRequestBody(
740 const ResourceRequestBodyImpl& body);
741
742 void UpdatePermissionsForNavigation( 735 void UpdatePermissionsForNavigation(
743 const CommonNavigationParams& common_params, 736 const CommonNavigationParams& common_params,
744 const RequestNavigationParams& request_params); 737 const RequestNavigationParams& request_params);
745 738
746 // Returns true if the ExecuteJavaScript() API can be used on this host. 739 // Returns true if the ExecuteJavaScript() API can be used on this host.
747 bool CanExecuteJavaScript(); 740 bool CanExecuteJavaScript();
748 741
749 // Map a routing ID from a frame in the same frame tree to a globally 742 // Map a routing ID from a frame in the same frame tree to a globally
750 // unique AXTreeID. 743 // unique AXTreeID.
751 AXTreeIDRegistry::AXTreeID RoutingIDToAXTreeID(int routing_id); 744 AXTreeIDRegistry::AXTreeID RoutingIDToAXTreeID(int routing_id);
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 1004
1012 // NOTE: This must be the last member. 1005 // NOTE: This must be the last member.
1013 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1006 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1014 1007
1015 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1008 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1016 }; 1009 };
1017 1010
1018 } // namespace content 1011 } // namespace content
1019 1012
1020 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1013 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/cross_site_transfer_browsertest.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698