OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEW_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 RenderViewHostDelegate* delegate, | 204 RenderViewHostDelegate* delegate, |
205 RenderWidgetHostDelegate* widget_delegate, | 205 RenderWidgetHostDelegate* widget_delegate, |
206 int routing_id, | 206 int routing_id, |
207 int main_frame_routing_id, | 207 int main_frame_routing_id, |
208 bool swapped_out); | 208 bool swapped_out); |
209 virtual ~TestRenderViewHost(); | 209 virtual ~TestRenderViewHost(); |
210 | 210 |
211 // RenderViewHostTester implementation. Note that CreateRenderView | 211 // RenderViewHostTester implementation. Note that CreateRenderView |
212 // is not specified since it is synonymous with the one from | 212 // is not specified since it is synonymous with the one from |
213 // RenderViewHostImpl, see below. | 213 // RenderViewHostImpl, see below. |
214 virtual void SetContentsMimeType(const std::string& mime_type) override; | |
215 virtual void SimulateWasHidden() override; | 214 virtual void SimulateWasHidden() override; |
216 virtual void SimulateWasShown() override; | 215 virtual void SimulateWasShown() override; |
217 | 216 |
218 // NOTE: These methods are deprecated and the equivalents in | |
219 // TestRenderFrameHost should be used. | |
220 virtual void SendNavigate(int page_id, const GURL& url) override; | |
221 virtual void SendFailedNavigate(int page_id, const GURL& url) override; | |
222 virtual void SendNavigateWithTransition( | |
223 int page_id, | |
224 const GURL& url, | |
225 ui::PageTransition transition) override; | |
226 | 217 |
227 // Calls OnNavigate on the RenderViewHost with the given information, | 218 // Calls OnNavigate on the RenderViewHost with the given information, |
228 // including a custom original request URL. Sets the rest of the | 219 // including a custom original request URL. Sets the rest of the |
229 // parameters in the message to the "typical" values. This is a helper | 220 // parameters in the message to the "typical" values. This is a helper |
230 // function for simulating the most common types of loads. | 221 // function for simulating the most common types of loads. |
231 void SendNavigateWithOriginalRequestURL( | 222 void SendNavigateWithOriginalRequestURL( |
Charlie Reis
2014/10/08 17:41:55
Are these going away in a future CL?
ncarter (slow)
2014/10/08 22:39:28
Whoops! I meant to rip these out too!
The new pat
| |
232 int page_id, const GURL& url, const GURL& original_request_url); | 223 int page_id, const GURL& url, const GURL& original_request_url); |
233 | 224 |
234 void SendNavigateWithFile( | 225 void SendNavigateWithFile( |
235 int page_id, const GURL& url, const base::FilePath& file_path); | 226 int page_id, const GURL& url, const base::FilePath& file_path); |
236 | 227 |
237 void SendNavigateWithParams( | 228 void SendNavigateWithParams( |
238 FrameHostMsg_DidCommitProvisionalLoad_Params* params); | 229 FrameHostMsg_DidCommitProvisionalLoad_Params* params); |
239 | 230 |
240 void TestOnUpdateStateWithFile( | 231 void TestOnUpdateStateWithFile( |
241 int page_id, const base::FilePath& file_path); | 232 int page_id, const base::FilePath& file_path); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
311 | 302 |
312 // See set_delete_counter() above. May be NULL. | 303 // See set_delete_counter() above. May be NULL. |
313 int* delete_counter_; | 304 int* delete_counter_; |
314 | 305 |
315 // See set_simulate_fetch_via_proxy() above. | 306 // See set_simulate_fetch_via_proxy() above. |
316 bool simulate_fetch_via_proxy_; | 307 bool simulate_fetch_via_proxy_; |
317 | 308 |
318 // See set_simulate_history_list_was_cleared() above. | 309 // See set_simulate_history_list_was_cleared() above. |
319 bool simulate_history_list_was_cleared_; | 310 bool simulate_history_list_was_cleared_; |
320 | 311 |
321 // See SetContentsMimeType() above. | |
322 std::string contents_mime_type_; | |
323 | |
324 // See opener_route_id() above. | 312 // See opener_route_id() above. |
325 int opener_route_id_; | 313 int opener_route_id_; |
326 | 314 |
327 TestRenderFrameHost* main_render_frame_host_; | 315 TestRenderFrameHost* main_render_frame_host_; |
328 | 316 |
329 DISALLOW_COPY_AND_ASSIGN(TestRenderViewHost); | 317 DISALLOW_COPY_AND_ASSIGN(TestRenderViewHost); |
330 }; | 318 }; |
331 | 319 |
332 #if defined(COMPILER_MSVC) | 320 #if defined(COMPILER_MSVC) |
333 #pragma warning(pop) | 321 #pragma warning(pop) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
375 private: | 363 private: |
376 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 364 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
377 ScopedSetSupportedScaleFactors; | 365 ScopedSetSupportedScaleFactors; |
378 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 366 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
379 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 367 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
380 }; | 368 }; |
381 | 369 |
382 } // namespace content | 370 } // namespace content |
383 | 371 |
384 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 372 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |