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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 void set_render_view_created(bool created) { | 275 void set_render_view_created(bool created) { |
276 render_view_created_ = created; | 276 render_view_created_ = created; |
277 } | 277 } |
278 | 278 |
279 // Returns whether the RenderViewHost is currently waiting to hear the result | 279 // Returns whether the RenderViewHost is currently waiting to hear the result |
280 // of a before unload handler from the renderer. | 280 // of a before unload handler from the renderer. |
281 bool is_waiting_for_beforeunload_ack() const { | 281 bool is_waiting_for_beforeunload_ack() const { |
282 return is_waiting_for_beforeunload_ack_; | 282 return is_waiting_for_beforeunload_ack_; |
283 } | 283 } |
284 | 284 |
285 // Returns whether the RenderViewHost is currently waiting to hear the result | |
286 // of an unload handler from the renderer. | |
287 bool is_waiting_for_unload_ack() const { | |
288 return is_waiting_for_unload_ack_; | |
289 } | |
290 | |
291 // Sets whether the RenderViewHost is currently swapped out, and thus | 285 // Sets whether the RenderViewHost is currently swapped out, and thus |
292 // filtering messages from the renderer. | 286 // filtering messages from the renderer. |
293 void set_is_swapped_out(bool is_swapped_out) { | 287 void set_rvh_state(RenderViewHostImplState rvh_state) { |
294 is_swapped_out_ = is_swapped_out; | 288 rvh_state_ = rvh_state; |
295 } | 289 } |
296 | 290 |
297 // If set, navigations will appear to have loaded through a proxy | 291 // If set, navigations will appear to have loaded through a proxy |
298 // (ViewHostMsg_FrameNavigte_Params::was_fetched_via_proxy). | 292 // (ViewHostMsg_FrameNavigte_Params::was_fetched_via_proxy). |
299 // False by default. | 293 // False by default. |
300 void set_simulate_fetch_via_proxy(bool proxy); | 294 void set_simulate_fetch_via_proxy(bool proxy); |
301 | 295 |
302 // If set, navigations will appear to have cleared the history list in the | 296 // If set, navigations will appear to have cleared the history list in the |
303 // RenderView (ViewHostMsg_FrameNavigate_Params::history_list_was_cleared). | 297 // RenderView (ViewHostMsg_FrameNavigate_Params::history_list_was_cleared). |
304 // False by default. | 298 // False by default. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 private: | 378 private: |
385 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 379 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
386 ScopedSetSupportedScaleFactors; | 380 ScopedSetSupportedScaleFactors; |
387 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 381 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
388 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 382 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
389 }; | 383 }; |
390 | 384 |
391 } // namespace content | 385 } // namespace content |
392 | 386 |
393 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 387 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |