| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 bool did_create_new_entry, | 94 bool did_create_new_entry, |
| 95 const GURL& url); | 95 const GURL& url); |
| 96 | 96 |
| 97 // With the current navigation logic this method is a no-op. | 97 // With the current navigation logic this method is a no-op. |
| 98 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. | 98 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. |
| 99 void SendRendererInitiatedNavigationRequest(const GURL& url, | 99 void SendRendererInitiatedNavigationRequest(const GURL& url, |
| 100 bool has_user_gesture); | 100 bool has_user_gesture); |
| 101 | 101 |
| 102 void DidChangeOpener(int opener_routing_id); | 102 void DidChangeOpener(int opener_routing_id); |
| 103 | 103 |
| 104 void DidEnforceStrictMixedContentChecking(); |
| 105 |
| 104 // If set, navigations will appear to have cleared the history list in the | 106 // If set, navigations will appear to have cleared the history list in the |
| 105 // RenderFrame | 107 // RenderFrame |
| 106 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). | 108 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). |
| 107 // False by default. | 109 // False by default. |
| 108 void set_simulate_history_list_was_cleared(bool cleared) { | 110 void set_simulate_history_list_was_cleared(bool cleared) { |
| 109 simulate_history_list_was_cleared_ = cleared; | 111 simulate_history_list_was_cleared_ = cleared; |
| 110 } | 112 } |
| 111 | 113 |
| 112 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to | 114 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to |
| 113 // a state where a new navigation can be committed by a renderer. Currently, | 115 // a state where a new navigation can be committed by a renderer. Currently, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 144 | 146 |
| 145 // See set_simulate_history_list_was_cleared() above. | 147 // See set_simulate_history_list_was_cleared() above. |
| 146 bool simulate_history_list_was_cleared_; | 148 bool simulate_history_list_was_cleared_; |
| 147 | 149 |
| 148 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 150 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 } // namespace content | 153 } // namespace content |
| 152 | 154 |
| 153 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 155 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |