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