| 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_TEST_TEST_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 bool did_create_new_entry, | 102 bool did_create_new_entry, |
| 103 const GURL& url); | 103 const GURL& url); |
| 104 | 104 |
| 105 // With the current navigation logic this method is a no-op. | 105 // With the current navigation logic this method is a no-op. |
| 106 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. | 106 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. |
| 107 void SendRendererInitiatedNavigationRequest(const GURL& url, | 107 void SendRendererInitiatedNavigationRequest(const GURL& url, |
| 108 bool has_user_gesture); | 108 bool has_user_gesture); |
| 109 | 109 |
| 110 void DidChangeOpener(int opener_routing_id); | 110 void DidChangeOpener(int opener_routing_id); |
| 111 | 111 |
| 112 void DidEnforceStrictMixedContentChecking(); | 112 void DidEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); |
| 113 | 113 |
| 114 // If set, navigations will appear to have cleared the history list in the | 114 // If set, navigations will appear to have cleared the history list in the |
| 115 // RenderFrame | 115 // RenderFrame |
| 116 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). | 116 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). |
| 117 // False by default. | 117 // False by default. |
| 118 void set_simulate_history_list_was_cleared(bool cleared) { | 118 void set_simulate_history_list_was_cleared(bool cleared) { |
| 119 simulate_history_list_was_cleared_ = cleared; | 119 simulate_history_list_was_cleared_ = cleared; |
| 120 } | 120 } |
| 121 | 121 |
| 122 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to | 122 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // See set_simulate_history_list_was_cleared() above. | 156 // See set_simulate_history_list_was_cleared() above. |
| 157 bool simulate_history_list_was_cleared_; | 157 bool simulate_history_list_was_cleared_; |
| 158 | 158 |
| 159 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 159 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace content | 162 } // namespace content |
| 163 | 163 |
| 164 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 164 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |