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

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

Issue 30323002: [DRAFT] Create RenderFrameHostManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month 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 #include "content/browser/renderer_host/test_render_view_host.h" 5 #include "content/browser/renderer_host/test_render_view_host.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
10 #include "content/browser/renderer_host/test_backing_store.h" 10 #include "content/browser/renderer_host/test_backing_store.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 render_view_created_(false), 247 render_view_created_(false),
248 delete_counter_(NULL), 248 delete_counter_(NULL),
249 simulate_fetch_via_proxy_(false), 249 simulate_fetch_via_proxy_(false),
250 simulate_history_list_was_cleared_(false), 250 simulate_history_list_was_cleared_(false),
251 contents_mime_type_("text/html"), 251 contents_mime_type_("text/html"),
252 opener_route_id_(MSG_ROUTING_NONE) { 252 opener_route_id_(MSG_ROUTING_NONE) {
253 // TestRenderWidgetHostView installs itself into this->view_ in its 253 // TestRenderWidgetHostView installs itself into this->view_ in its
254 // constructor, and deletes itself when TestRenderWidgetHostView::Destroy() is 254 // constructor, and deletes itself when TestRenderWidgetHostView::Destroy() is
255 // called. 255 // called.
256 new TestRenderWidgetHostView(this); 256 new TestRenderWidgetHostView(this);
257
258 main_frame_id_ = kFrameId;
259 } 257 }
260 258
261 TestRenderViewHost::~TestRenderViewHost() { 259 TestRenderViewHost::~TestRenderViewHost() {
262 if (delete_counter_) 260 if (delete_counter_)
263 ++*delete_counter_; 261 ++*delete_counter_;
264 } 262 }
265 263
266 bool TestRenderViewHost::CreateRenderView( 264 bool TestRenderViewHost::CreateRenderView(
267 const string16& frame_name, 265 const string16& frame_name,
268 int opener_route_id, 266 int opener_route_id,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 416
419 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 417 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
420 return static_cast<TestRenderViewHost*>(active_rvh()); 418 return static_cast<TestRenderViewHost*>(active_rvh());
421 } 419 }
422 420
423 TestWebContents* RenderViewHostImplTestHarness::contents() { 421 TestWebContents* RenderViewHostImplTestHarness::contents() {
424 return static_cast<TestWebContents*>(web_contents()); 422 return static_cast<TestWebContents*>(web_contents());
425 } 423 }
426 424
427 } // namespace content 425 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698