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

Side by Side Diff: content/test/test_render_frame_host.cc

Issue 837283003: Start replicating sandbox flags for OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 #include "content/test/test_render_frame_host.h" 5 #include "content/test/test_render_frame_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/browser/frame_host/frame_tree.h" 8 #include "content/browser/frame_host/frame_tree.h"
9 #include "content/browser/frame_host/navigation_request.h" 9 #include "content/browser/frame_host/navigation_request.h"
10 #include "content/browser/frame_host/navigator.h" 10 #include "content/browser/frame_host/navigator.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 TestRenderFrameHost::~TestRenderFrameHost() {} 54 TestRenderFrameHost::~TestRenderFrameHost() {}
55 55
56 TestRenderViewHost* TestRenderFrameHost::GetRenderViewHost() { 56 TestRenderViewHost* TestRenderFrameHost::GetRenderViewHost() {
57 return static_cast<TestRenderViewHost*>( 57 return static_cast<TestRenderViewHost*>(
58 RenderFrameHostImpl::GetRenderViewHost()); 58 RenderFrameHostImpl::GetRenderViewHost());
59 } 59 }
60 60
61 TestRenderFrameHost* TestRenderFrameHost::AppendChild( 61 TestRenderFrameHost* TestRenderFrameHost::AppendChild(
62 const std::string& frame_name) { 62 const std::string& frame_name) {
63 OnCreateChildFrame(GetProcess()->GetNextRoutingID(), frame_name); 63 OnCreateChildFrame(GetProcess()->GetNextRoutingID(), frame_name,
64 SandboxFlags::NONE);
64 return static_cast<TestRenderFrameHost*>( 65 return static_cast<TestRenderFrameHost*>(
65 child_creation_observer_.last_created_frame()); 66 child_creation_observer_.last_created_frame());
66 } 67 }
67 68
68 void TestRenderFrameHost::SendNavigateWithTransition( 69 void TestRenderFrameHost::SendNavigateWithTransition(
69 int page_id, 70 int page_id,
70 const GURL& url, 71 const GURL& url,
71 ui::PageTransition transition) { 72 ui::PageTransition transition) {
72 SendNavigateWithTransitionAndResponseCode(page_id, url, transition, 200); 73 SendNavigateWithTransitionAndResponseCode(page_id, url, transition, 200);
73 } 74 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 231
231 ASSERT_TRUE(request->state() == NavigationRequest::STARTED); 232 ASSERT_TRUE(request->state() == NavigationRequest::STARTED);
232 TestNavigationURLLoader* url_loader = 233 TestNavigationURLLoader* url_loader =
233 static_cast<TestNavigationURLLoader*>(request->loader_for_testing()); 234 static_cast<TestNavigationURLLoader*>(request->loader_for_testing());
234 ASSERT_TRUE(url_loader); 235 ASSERT_TRUE(url_loader);
235 scoped_refptr<ResourceResponse> response(new ResourceResponse); 236 scoped_refptr<ResourceResponse> response(new ResourceResponse);
236 url_loader->CallOnResponseStarted(response, MakeEmptyStream()); 237 url_loader->CallOnResponseStarted(response, MakeEmptyStream());
237 } 238 }
238 239
239 } // namespace content 240 } // namespace content
OLDNEW
« content/renderer/render_frame_impl.cc ('K') | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698