| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // The reason we do it this way instead of using composition is | 227 // The reason we do it this way instead of using composition is |
| 228 // similar to (b) above, essentially it gets very tricky. By using | 228 // similar to (b) above, essentially it gets very tricky. By using |
| 229 // the split interface we avoid complexity within content and maintain | 229 // the split interface we avoid complexity within content and maintain |
| 230 // reasonable utility for embedders. | 230 // reasonable utility for embedders. |
| 231 class TestRenderViewHost | 231 class TestRenderViewHost |
| 232 : public RenderViewHostImpl, | 232 : public RenderViewHostImpl, |
| 233 public RenderViewHostTester { | 233 public RenderViewHostTester { |
| 234 public: | 234 public: |
| 235 TestRenderViewHost(SiteInstance* instance, | 235 TestRenderViewHost(SiteInstance* instance, |
| 236 RenderViewHostDelegate* delegate, | 236 RenderViewHostDelegate* delegate, |
| 237 RenderFrameHostDelegate* frame_delegate, | |
| 238 RenderWidgetHostDelegate* widget_delegate, | 237 RenderWidgetHostDelegate* widget_delegate, |
| 239 int routing_id, | 238 int routing_id, |
| 240 int main_frame_routing_id, | 239 int main_frame_routing_id, |
| 241 bool swapped_out); | 240 bool swapped_out); |
| 242 virtual ~TestRenderViewHost(); | 241 virtual ~TestRenderViewHost(); |
| 243 | 242 |
| 244 // RenderViewHostTester implementation. Note that CreateRenderView | 243 // RenderViewHostTester implementation. Note that CreateRenderView |
| 245 // is not specified since it is synonymous with the one from | 244 // is not specified since it is synonymous with the one from |
| 246 // RenderViewHostImpl, see below. | 245 // RenderViewHostImpl, see below. |
| 247 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; | 246 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 private: | 380 private: |
| 382 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> | 381 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 383 ScopedSetSupportedScaleFactors; | 382 ScopedSetSupportedScaleFactors; |
| 384 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 383 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 385 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 384 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 386 }; | 385 }; |
| 387 | 386 |
| 388 } // namespace content | 387 } // namespace content |
| 389 | 388 |
| 390 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 389 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |