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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 // Grants the current RenderProcessHost read access to any file listed in | 859 // Grants the current RenderProcessHost read access to any file listed in |
860 // |validated_state|. It is important that the PageState has been validated | 860 // |validated_state|. It is important that the PageState has been validated |
861 // upon receipt from the renderer process to prevent it from forging access to | 861 // upon receipt from the renderer process to prevent it from forging access to |
862 // files without the user's consent. | 862 // files without the user's consent. |
863 void GrantFileAccessFromPageState(const PageState& validated_state); | 863 void GrantFileAccessFromPageState(const PageState& validated_state); |
864 | 864 |
865 // Grants the current RenderProcessHost read access to any file listed in | 865 // Grants the current RenderProcessHost read access to any file listed in |
866 // |body|. It is important that the ResourceRequestBody has been validated | 866 // |body|. It is important that the ResourceRequestBody has been validated |
867 // upon receipt from the renderer process to prevent it from forging access to | 867 // upon receipt from the renderer process to prevent it from forging access to |
868 // files without the user's consent. | 868 // files without the user's consent. |
869 void GrantFileAccessFromResourceRequestBody( | 869 void GrantFileAccessFromResourceRequestBody(const ResourceRequestBody& body); |
870 const ResourceRequestBodyImpl& body); | |
871 | 870 |
872 void UpdatePermissionsForNavigation( | 871 void UpdatePermissionsForNavigation( |
873 const CommonNavigationParams& common_params, | 872 const CommonNavigationParams& common_params, |
874 const RequestNavigationParams& request_params); | 873 const RequestNavigationParams& request_params); |
875 | 874 |
876 // Returns true if the ExecuteJavaScript() API can be used on this host. | 875 // Returns true if the ExecuteJavaScript() API can be used on this host. |
877 bool CanExecuteJavaScript(); | 876 bool CanExecuteJavaScript(); |
878 | 877 |
879 // Map a routing ID from a frame in the same frame tree to a globally | 878 // Map a routing ID from a frame in the same frame tree to a globally |
880 // unique AXTreeID. | 879 // unique AXTreeID. |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 | 1269 |
1271 // NOTE: This must be the last member. | 1270 // NOTE: This must be the last member. |
1272 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1271 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1273 | 1272 |
1274 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1273 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1275 }; | 1274 }; |
1276 | 1275 |
1277 } // namespace content | 1276 } // namespace content |
1278 | 1277 |
1279 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1278 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |