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