| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 const GURL& url, | 78 const GURL& url, |
| 79 const std::vector<GURL>& redirects); | 79 const std::vector<GURL>& redirects); |
| 80 void SendNavigateWithParameters( | 80 void SendNavigateWithParameters( |
| 81 int page_id, | 81 int page_id, |
| 82 const GURL& url, | 82 const GURL& url, |
| 83 ui::PageTransition transition, | 83 ui::PageTransition transition, |
| 84 const GURL& original_request_url, | 84 const GURL& original_request_url, |
| 85 int response_code, | 85 int response_code, |
| 86 const base::FilePath* file_path_for_history_item, | 86 const base::FilePath* file_path_for_history_item, |
| 87 const std::vector<GURL>& redirects); | 87 const std::vector<GURL>& redirects); |
| 88 void SendBeginNavigationWithURL(const GURL& url); | 88 void SendBeginNavigationWithURL(const GURL& url, bool has_user_gesture); |
| 89 | 89 |
| 90 void DidDisownOpener(); | 90 void DidDisownOpener(); |
| 91 | 91 |
| 92 // If set, navigations will appear to have cleared the history list in the | 92 // If set, navigations will appear to have cleared the history list in the |
| 93 // RenderFrame | 93 // RenderFrame |
| 94 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). | 94 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). |
| 95 // False by default. | 95 // False by default. |
| 96 void set_simulate_history_list_was_cleared(bool cleared) { | 96 void set_simulate_history_list_was_cleared(bool cleared) { |
| 97 simulate_history_list_was_cleared_ = cleared; | 97 simulate_history_list_was_cleared_ = cleared; |
| 98 } | 98 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 117 | 117 |
| 118 // See set_simulate_history_list_was_cleared() above. | 118 // See set_simulate_history_list_was_cleared() above. |
| 119 bool simulate_history_list_was_cleared_; | 119 bool simulate_history_list_was_cleared_; |
| 120 | 120 |
| 121 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 121 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace content | 124 } // namespace content |
| 125 | 125 |
| 126 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 126 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |