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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // the split interface we avoid complexity within content and maintain | 220 // the split interface we avoid complexity within content and maintain |
221 // reasonable utility for embedders. | 221 // reasonable utility for embedders. |
222 class TestRenderViewHost | 222 class TestRenderViewHost |
223 : public RenderViewHostImpl, | 223 : public RenderViewHostImpl, |
224 public RenderViewHostTester { | 224 public RenderViewHostTester { |
225 public: | 225 public: |
226 TestRenderViewHost(SiteInstance* instance, | 226 TestRenderViewHost(SiteInstance* instance, |
227 RenderViewHostDelegate* delegate, | 227 RenderViewHostDelegate* delegate, |
228 RenderWidgetHostDelegate* widget_delegate, | 228 RenderWidgetHostDelegate* widget_delegate, |
229 int routing_id, | 229 int routing_id, |
| 230 int main_frame_routing_id, |
230 bool swapped_out); | 231 bool swapped_out); |
231 virtual ~TestRenderViewHost(); | 232 virtual ~TestRenderViewHost(); |
232 | 233 |
233 // RenderViewHostTester implementation. Note that CreateRenderView | 234 // RenderViewHostTester implementation. Note that CreateRenderView |
234 // is not specified since it is synonymous with the one from | 235 // is not specified since it is synonymous with the one from |
235 // RenderViewHostImpl, see below. | 236 // RenderViewHostImpl, see below. |
236 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; | 237 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; |
237 virtual void SendFailedNavigate(int page_id, const GURL& url) OVERRIDE; | 238 virtual void SendFailedNavigate(int page_id, const GURL& url) OVERRIDE; |
238 virtual void SendNavigateWithTransition(int page_id, const GURL& url, | 239 virtual void SendNavigateWithTransition(int page_id, const GURL& url, |
239 PageTransition transition) OVERRIDE; | 240 PageTransition transition) OVERRIDE; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 TestRenderViewHost* active_test_rvh(); | 359 TestRenderViewHost* active_test_rvh(); |
359 TestWebContents* contents(); | 360 TestWebContents* contents(); |
360 | 361 |
361 private: | 362 private: |
362 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 363 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
363 }; | 364 }; |
364 | 365 |
365 } // namespace content | 366 } // namespace content |
366 | 367 |
367 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ | 368 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ |
OLD | NEW |