Chromium Code Reviews| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 const GURL& url, | 80 const GURL& url, |
| 81 ui::PageTransition transition, | 81 ui::PageTransition transition, |
| 82 const GURL& original_request_url, | 82 const GURL& original_request_url, |
| 83 int response_code, | 83 int response_code, |
| 84 const base::FilePath* file_path_for_history_item, | 84 const base::FilePath* file_path_for_history_item, |
| 85 const std::vector<GURL>& redirects); | 85 const std::vector<GURL>& redirects); |
| 86 void SendBeginNavigationWithURL(const GURL& url); | 86 void SendBeginNavigationWithURL(const GURL& url); |
| 87 | 87 |
| 88 void DidDisownOpener(); | 88 void DidDisownOpener(); |
| 89 | 89 |
| 90 void SendRendererResponseToNavigation(bool proceed, const GURL& url); | |
| 91 | |
| 90 // 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 |
| 91 // RenderFrame | 93 // RenderFrame |
| 92 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). | 94 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). |
| 93 // False by default. | 95 // False by default. |
| 94 void set_simulate_history_list_was_cleared(bool cleared) { | 96 void set_simulate_history_list_was_cleared(bool cleared) { |
| 95 simulate_history_list_was_cleared_ = cleared; | 97 simulate_history_list_was_cleared_ = cleared; |
| 96 } | 98 } |
| 97 | 99 |
| 100 // PlzNavigate | |
| 101 void SimulateIOThread(const GURL& url); | |
|
nasko
2014/12/16 01:40:26
This is a bit too specific of a name for unit test
clamy
2014/12/16 19:19:05
Would the name MakeNavigationReadyForCommit be bet
nasko
2014/12/17 00:55:02
PrepareForCommit? Or yours works too.
clamy
2014/12/17 15:47:58
Done.
| |
| 98 private: | 102 private: |
| 103 | |
|
nasko
2014/12/16 01:40:26
nit: no need for empty line here, rather above "pr
clamy
2014/12/17 15:47:57
Done.
| |
| 99 TestRenderFrameHostCreationObserver child_creation_observer_; | 104 TestRenderFrameHostCreationObserver child_creation_observer_; |
| 100 | 105 |
| 101 std::string contents_mime_type_; | 106 std::string contents_mime_type_; |
| 102 | 107 |
| 103 // See set_simulate_history_list_was_cleared() above. | 108 // See set_simulate_history_list_was_cleared() above. |
| 104 bool simulate_history_list_was_cleared_; | 109 bool simulate_history_list_was_cleared_; |
| 105 | 110 |
| 106 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 111 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 107 }; | 112 }; |
| 108 | 113 |
| 109 } // namespace content | 114 } // namespace content |
| 110 | 115 |
| 111 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 116 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |