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

Side by Side Diff: content/test/test_render_view_host.h

Issue 106963004: Make RenderFrameHostManager swap RenderFrameHosts, not RenderViewHosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698