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

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

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 years, 5 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/loader/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 3694 matching lines...) Expand 10 before | Expand all | Expand 10 after
3705 bool RenderFrameHostImpl::CanAccessFilesOfPageState(const PageState& state) { 3705 bool RenderFrameHostImpl::CanAccessFilesOfPageState(const PageState& state) {
3706 return ChildProcessSecurityPolicyImpl::GetInstance()->CanReadAllFiles( 3706 return ChildProcessSecurityPolicyImpl::GetInstance()->CanReadAllFiles(
3707 GetProcess()->GetID(), state.GetReferencedFiles()); 3707 GetProcess()->GetID(), state.GetReferencedFiles());
3708 } 3708 }
3709 3709
3710 void RenderFrameHostImpl::GrantFileAccessFromPageState(const PageState& state) { 3710 void RenderFrameHostImpl::GrantFileAccessFromPageState(const PageState& state) {
3711 GrantFileAccess(GetProcess()->GetID(), state.GetReferencedFiles()); 3711 GrantFileAccess(GetProcess()->GetID(), state.GetReferencedFiles());
3712 } 3712 }
3713 3713
3714 void RenderFrameHostImpl::GrantFileAccessFromResourceRequestBody( 3714 void RenderFrameHostImpl::GrantFileAccessFromResourceRequestBody(
3715 const ResourceRequestBodyImpl& body) { 3715 const ResourceRequestBody& body) {
3716 GrantFileAccess(GetProcess()->GetID(), body.GetReferencedFiles()); 3716 GrantFileAccess(GetProcess()->GetID(), body.GetReferencedFiles());
3717 } 3717 }
3718 3718
3719 void RenderFrameHostImpl::UpdatePermissionsForNavigation( 3719 void RenderFrameHostImpl::UpdatePermissionsForNavigation(
3720 const CommonNavigationParams& common_params, 3720 const CommonNavigationParams& common_params,
3721 const RequestNavigationParams& request_params) { 3721 const RequestNavigationParams& request_params) {
3722 // Browser plugin guests are not allowed to navigate outside web-safe schemes, 3722 // Browser plugin guests are not allowed to navigate outside web-safe schemes,
3723 // so do not grant them the ability to request additional URLs. 3723 // so do not grant them the ability to request additional URLs.
3724 if (!GetProcess()->IsForGuestsOnly()) { 3724 if (!GetProcess()->IsForGuestsOnly()) {
3725 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL( 3725 ChildProcessSecurityPolicyImpl::GetInstance()->GrantRequestURL(
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
4159 } 4159 }
4160 4160
4161 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( 4161 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame(
4162 const std::string& interface_name, 4162 const std::string& interface_name,
4163 mojo::ScopedMessagePipeHandle pipe) { 4163 mojo::ScopedMessagePipeHandle pipe) {
4164 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); 4164 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe));
4165 } 4165 }
4166 #endif 4166 #endif
4167 4167
4168 } // namespace content 4168 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/loader/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698