OLD | NEW |
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 Loading... |
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(const ResourceRequestBody& body); |
| 740 |
735 void UpdatePermissionsForNavigation( | 741 void UpdatePermissionsForNavigation( |
736 const CommonNavigationParams& common_params, | 742 const CommonNavigationParams& common_params, |
737 const RequestNavigationParams& request_params); | 743 const RequestNavigationParams& request_params); |
738 | 744 |
739 // Returns true if the ExecuteJavaScript() API can be used on this host. | 745 // Returns true if the ExecuteJavaScript() API can be used on this host. |
740 bool CanExecuteJavaScript(); | 746 bool CanExecuteJavaScript(); |
741 | 747 |
742 // Map a routing ID from a frame in the same frame tree to a globally | 748 // Map a routing ID from a frame in the same frame tree to a globally |
743 // unique AXTreeID. | 749 // unique AXTreeID. |
744 AXTreeIDRegistry::AXTreeID RoutingIDToAXTreeID(int routing_id); | 750 AXTreeIDRegistry::AXTreeID RoutingIDToAXTreeID(int routing_id); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 | 1010 |
1005 // NOTE: This must be the last member. | 1011 // NOTE: This must be the last member. |
1006 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1012 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1007 | 1013 |
1008 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1014 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1009 }; | 1015 }; |
1010 | 1016 |
1011 } // namespace content | 1017 } // namespace content |
1012 | 1018 |
1013 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1019 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |