Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: content/browser/renderer_host/test_render_view_host.h

Issue 103633002: Add RenderFrameHostDelegate and plumb it through all the necessary classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // The reason we do it this way instead of using composition is 226 // The reason we do it this way instead of using composition is
227 // similar to (b) above, essentially it gets very tricky. By using 227 // similar to (b) above, essentially it gets very tricky. By using
228 // the split interface we avoid complexity within content and maintain 228 // the split interface we avoid complexity within content and maintain
229 // reasonable utility for embedders. 229 // reasonable utility for embedders.
230 class TestRenderViewHost 230 class TestRenderViewHost
231 : public RenderViewHostImpl, 231 : public RenderViewHostImpl,
232 public RenderViewHostTester { 232 public RenderViewHostTester {
233 public: 233 public:
234 TestRenderViewHost(SiteInstance* instance, 234 TestRenderViewHost(SiteInstance* instance,
235 RenderViewHostDelegate* delegate, 235 RenderViewHostDelegate* delegate,
236 RenderFrameHostDelegate* frame_delegate,
236 RenderWidgetHostDelegate* widget_delegate, 237 RenderWidgetHostDelegate* widget_delegate,
237 int routing_id, 238 int routing_id,
238 int main_frame_routing_id, 239 int main_frame_routing_id,
239 bool swapped_out); 240 bool swapped_out);
240 virtual ~TestRenderViewHost(); 241 virtual ~TestRenderViewHost();
241 242
242 // RenderViewHostTester implementation. Note that CreateRenderView 243 // RenderViewHostTester implementation. Note that CreateRenderView
243 // is not specified since it is synonymous with the one from 244 // is not specified since it is synonymous with the one from
244 // RenderViewHostImpl, see below. 245 // RenderViewHostImpl, see below.
245 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; 246 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 private: 377 private:
377 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> 378 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors>
378 ScopedSetSupportedScaleFactors; 379 ScopedSetSupportedScaleFactors;
379 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 380 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
380 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 381 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
381 }; 382 };
382 383
383 } // namespace content 384 } // namespace content
384 385
385 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 386 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698