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

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

Issue 2472253002: Fix navigation requests starting too early and not getting associated with the <webview>. (Closed)
Patch Set: nits Created 4 years, 1 month 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/guid.h" 7 #include "base/guid.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_handle_impl.h" 9 #include "content/browser/frame_host/navigation_handle_impl.h"
10 #include "content/browser/frame_host/navigation_request.h" 10 #include "content/browser/frame_host/navigation_request.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int32_t widget_routing_id, 54 int32_t widget_routing_id,
55 int flags) 55 int flags)
56 : RenderFrameHostImpl(site_instance, 56 : RenderFrameHostImpl(site_instance,
57 render_view_host, 57 render_view_host,
58 delegate, 58 delegate,
59 rwh_delegate, 59 rwh_delegate,
60 frame_tree, 60 frame_tree,
61 frame_tree_node, 61 frame_tree_node,
62 routing_id, 62 routing_id,
63 widget_routing_id, 63 widget_routing_id,
64 flags), 64 flags,
65 false),
65 child_creation_observer_(delegate ? delegate->GetAsWebContents() : NULL), 66 child_creation_observer_(delegate ? delegate->GetAsWebContents() : NULL),
66 contents_mime_type_("text/html"), 67 contents_mime_type_("text/html"),
67 simulate_history_list_was_cleared_(false), 68 simulate_history_list_was_cleared_(false),
68 last_commit_was_error_page_(false) {} 69 last_commit_was_error_page_(false) {}
69 70
70 TestRenderFrameHost::~TestRenderFrameHost() { 71 TestRenderFrameHost::~TestRenderFrameHost() {
71 } 72 }
72 73
73 TestRenderViewHost* TestRenderFrameHost::GetRenderViewHost() { 74 TestRenderViewHost* TestRenderFrameHost::GetRenderViewHost() {
74 return static_cast<TestRenderViewHost*>( 75 return static_cast<TestRenderViewHost*>(
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // PlzNavigate: NavigationHandle::WillStartRequest has already been called at 482 // PlzNavigate: NavigationHandle::WillStartRequest has already been called at
482 // this point. 483 // this point.
483 if (!navigation_handle() || IsBrowserSideNavigationEnabled()) 484 if (!navigation_handle() || IsBrowserSideNavigationEnabled())
484 return; 485 return;
485 navigation_handle()->CallWillStartRequestForTesting( 486 navigation_handle()->CallWillStartRequestForTesting(
486 false /* is_post */, Referrer(GURL(), blink::WebReferrerPolicyDefault), 487 false /* is_post */, Referrer(GURL(), blink::WebReferrerPolicyDefault),
487 true /* user_gesture */, transition, false /* is_external_protocol */); 488 true /* user_gesture */, transition, false /* is_external_protocol */);
488 } 489 }
489 490
490 } // namespace content 491 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/test/test_render_frame_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698