| 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 #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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 common_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault); | 370 common_params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault); |
| 371 common_params.transition = ui::PAGE_TRANSITION_LINK; | 371 common_params.transition = ui::PAGE_TRANSITION_LINK; |
| 372 OnBeginNavigation(common_params, begin_params); | 372 OnBeginNavigation(common_params, begin_params); |
| 373 } | 373 } |
| 374 } | 374 } |
| 375 | 375 |
| 376 void TestRenderFrameHost::DidChangeOpener(int opener_routing_id) { | 376 void TestRenderFrameHost::DidChangeOpener(int opener_routing_id) { |
| 377 OnDidChangeOpener(opener_routing_id); | 377 OnDidChangeOpener(opener_routing_id); |
| 378 } | 378 } |
| 379 | 379 |
| 380 void TestRenderFrameHost::DidEnforceStrictMixedContentChecking() { | 380 void TestRenderFrameHost::DidEnforceInsecureRequestPolicy( |
| 381 OnEnforceStrictMixedContentChecking(); | 381 blink::WebInsecureRequestPolicy policy) { |
| 382 OnEnforceInsecureRequestPolicy(policy); |
| 382 } | 383 } |
| 383 | 384 |
| 384 void TestRenderFrameHost::PrepareForCommit() { | 385 void TestRenderFrameHost::PrepareForCommit() { |
| 385 PrepareForCommitWithServerRedirect(GURL()); | 386 PrepareForCommitWithServerRedirect(GURL()); |
| 386 } | 387 } |
| 387 | 388 |
| 388 void TestRenderFrameHost::PrepareForCommitWithServerRedirect( | 389 void TestRenderFrameHost::PrepareForCommitWithServerRedirect( |
| 389 const GURL& redirect_url) { | 390 const GURL& redirect_url) { |
| 390 if (!IsBrowserSideNavigationEnabled()) { | 391 if (!IsBrowserSideNavigationEnabled()) { |
| 391 // Non PlzNavigate | 392 // Non PlzNavigate |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 // cleared during DidFailProvisionalLoad). | 432 // cleared during DidFailProvisionalLoad). |
| 432 int page_id = entry ? entry->GetPageID() : -1; | 433 int page_id = entry ? entry->GetPageID() : -1; |
| 433 if (page_id == -1) { | 434 if (page_id == -1) { |
| 434 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(delegate()); | 435 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(delegate()); |
| 435 page_id = web_contents->GetMaxPageIDForSiteInstance(GetSiteInstance()) + 1; | 436 page_id = web_contents->GetMaxPageIDForSiteInstance(GetSiteInstance()) + 1; |
| 436 } | 437 } |
| 437 return page_id; | 438 return page_id; |
| 438 } | 439 } |
| 439 | 440 |
| 440 } // namespace content | 441 } // namespace content |
| OLD | NEW |