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_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // If set, navigations will appear to have loaded through a proxy | 270 // If set, navigations will appear to have loaded through a proxy |
271 // (ViewHostMsg_FrameNavigte_Params::was_fetched_via_proxy). | 271 // (ViewHostMsg_FrameNavigte_Params::was_fetched_via_proxy). |
272 // False by default. | 272 // False by default. |
273 void set_simulate_fetch_via_proxy(bool proxy); | 273 void set_simulate_fetch_via_proxy(bool proxy); |
274 | 274 |
275 // RenderViewHost overrides -------------------------------------------------- | 275 // RenderViewHost overrides -------------------------------------------------- |
276 | 276 |
277 virtual bool CreateRenderView(const string16& frame_name, | 277 virtual bool CreateRenderView(const string16& frame_name, |
278 int opener_route_id, | 278 int opener_route_id, |
279 int32 max_page_id, | 279 int32 max_page_id, |
280 int embedder_process_id) OVERRIDE; | 280 int embedder_process_id, |
| 281 const std::string& ua_override) OVERRIDE; |
281 virtual bool IsRenderViewLive() const OVERRIDE; | 282 virtual bool IsRenderViewLive() const OVERRIDE; |
282 | 283 |
283 private: | 284 private: |
284 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); | 285 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); |
285 | 286 |
286 // Tracks if the caller thinks if it created the RenderView. This is so we can | 287 // Tracks if the caller thinks if it created the RenderView. This is so we can |
287 // respond to IsRenderViewLive appropriately. | 288 // respond to IsRenderViewLive appropriately. |
288 bool render_view_created_; | 289 bool render_view_created_; |
289 | 290 |
290 // See set_delete_counter() above. May be NULL. | 291 // See set_delete_counter() above. May be NULL. |
(...skipping 24 matching lines...) Expand all Loading... |
315 TestRenderViewHost* active_test_rvh(); | 316 TestRenderViewHost* active_test_rvh(); |
316 TestWebContents* contents(); | 317 TestWebContents* contents(); |
317 | 318 |
318 private: | 319 private: |
319 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 320 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
320 }; | 321 }; |
321 | 322 |
322 } // namespace content | 323 } // namespace content |
323 | 324 |
324 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 325 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |