| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 FrameTreeNode* frame_tree_node, | 43 FrameTreeNode* frame_tree_node, |
| 44 int routing_id, | 44 int routing_id, |
| 45 int flags); | 45 int flags); |
| 46 ~TestRenderFrameHost() override; | 46 ~TestRenderFrameHost() override; |
| 47 | 47 |
| 48 // RenderFrameHostImpl overrides (same values, but in Test* types) | 48 // RenderFrameHostImpl overrides (same values, but in Test* types) |
| 49 TestRenderViewHost* GetRenderViewHost() override; | 49 TestRenderViewHost* GetRenderViewHost() override; |
| 50 | 50 |
| 51 // RenderFrameHostTester implementation. | 51 // RenderFrameHostTester implementation. |
| 52 TestRenderFrameHost* AppendChild(const std::string& frame_name) override; | 52 TestRenderFrameHost* AppendChild(const std::string& frame_name) override; |
| 53 void SendNavigate(int page_id, const GURL& url) override; | 53 void SendNavigate(int page_id, |
| 54 void SendFailedNavigate(int page_id, const GURL& url) override; | 54 int nav_entry_id, |
| 55 bool did_create_new_entry, |
| 56 const GURL& url) override; |
| 57 void SendFailedNavigate(int page_id, |
| 58 int nav_entry_id, |
| 59 bool did_create_new_entry, |
| 60 const GURL& url) override; |
| 55 void SendNavigateWithTransition(int page_id, | 61 void SendNavigateWithTransition(int page_id, |
| 62 int nav_entry_id, |
| 63 bool did_create_new_entry, |
| 56 const GURL& url, | 64 const GURL& url, |
| 57 ui::PageTransition transition) override; | 65 ui::PageTransition transition) override; |
| 58 void SetContentsMimeType(const std::string& mime_type) override; | 66 void SetContentsMimeType(const std::string& mime_type) override; |
| 59 void SendBeforeUnloadACK(bool proceed) override; | 67 void SendBeforeUnloadACK(bool proceed) override; |
| 60 void SimulateSwapOutACK() override; | 68 void SimulateSwapOutACK() override; |
| 61 | 69 |
| 62 void SendNavigateWithTransitionAndResponseCode( | 70 void SendNavigateWithTransitionAndResponseCode(int page_id, |
| 63 int page_id, | 71 int nav_entry_id, |
| 64 const GURL& url, ui::PageTransition transition, | 72 bool did_create_new_entry, |
| 65 int response_code); | 73 const GURL& url, |
| 66 void SendNavigateWithOriginalRequestURL( | 74 ui::PageTransition transition, |
| 67 int page_id, | 75 int response_code); |
| 68 const GURL& url, | 76 void SendNavigateWithOriginalRequestURL(int page_id, |
| 69 const GURL& original_request_url); | 77 int nav_entry_id, |
| 70 void SendNavigateWithFile( | 78 bool did_create_new_entry, |
| 71 int page_id, | 79 const GURL& url, |
| 72 const GURL& url, | 80 const GURL& original_request_url); |
| 73 const base::FilePath& file_path); | 81 void SendNavigateWithFile(int page_id, |
| 82 int nav_entry_id, |
| 83 bool did_create_new_entry, |
| 84 const GURL& url, |
| 85 const base::FilePath& file_path); |
| 74 void SendNavigateWithParams( | 86 void SendNavigateWithParams( |
| 75 FrameHostMsg_DidCommitProvisionalLoad_Params* params); | 87 FrameHostMsg_DidCommitProvisionalLoad_Params* params); |
| 76 void SendNavigateWithRedirects( | 88 void SendNavigateWithRedirects(int page_id, |
| 77 int page_id, | 89 int nav_entry_id, |
| 78 const GURL& url, | 90 bool did_create_new_entry, |
| 79 const std::vector<GURL>& redirects); | 91 const GURL& url, |
| 92 const std::vector<GURL>& redirects); |
| 80 void SendNavigateWithParameters( | 93 void SendNavigateWithParameters( |
| 81 int page_id, | 94 int page_id, |
| 95 int nav_entry_id, |
| 96 bool did_create_new_entry, |
| 82 const GURL& url, | 97 const GURL& url, |
| 83 ui::PageTransition transition, | 98 ui::PageTransition transition, |
| 84 const GURL& original_request_url, | 99 const GURL& original_request_url, |
| 85 int response_code, | 100 int response_code, |
| 86 const base::FilePath* file_path_for_history_item, | 101 const base::FilePath* file_path_for_history_item, |
| 87 const std::vector<GURL>& redirects); | 102 const std::vector<GURL>& redirects); |
| 88 | 103 |
| 89 // With the current navigation logic this method is a no-op. | 104 // With the current navigation logic this method is a no-op. |
| 90 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. | 105 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. |
| 91 void SendRendererInitiatedNavigationRequest(const GURL& url, | 106 void SendRendererInitiatedNavigationRequest(const GURL& url, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 121 | 136 |
| 122 // See set_simulate_history_list_was_cleared() above. | 137 // See set_simulate_history_list_was_cleared() above. |
| 123 bool simulate_history_list_was_cleared_; | 138 bool simulate_history_list_was_cleared_; |
| 124 | 139 |
| 125 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); | 140 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| 126 }; | 141 }; |
| 127 | 142 |
| 128 } // namespace content | 143 } // namespace content |
| 129 | 144 |
| 130 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ | 145 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |
| OLD | NEW |