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 #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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 main_frame_id_ = kFrameId; | 263 main_frame_id_ = kFrameId; |
264 } | 264 } |
265 | 265 |
266 TestRenderViewHost::~TestRenderViewHost() { | 266 TestRenderViewHost::~TestRenderViewHost() { |
267 if (delete_counter_) | 267 if (delete_counter_) |
268 ++*delete_counter_; | 268 ++*delete_counter_; |
269 } | 269 } |
270 | 270 |
271 bool TestRenderViewHost::CreateRenderView( | 271 bool TestRenderViewHost::CreateRenderView( |
272 const string16& frame_name, | 272 const base::string16& frame_name, |
273 int opener_route_id, | 273 int opener_route_id, |
274 int32 max_page_id) { | 274 int32 max_page_id) { |
275 DCHECK(!render_view_created_); | 275 DCHECK(!render_view_created_); |
276 render_view_created_ = true; | 276 render_view_created_ = true; |
277 opener_route_id_ = opener_route_id; | 277 opener_route_id_ = opener_route_id; |
278 return true; | 278 return true; |
279 } | 279 } |
280 | 280 |
281 bool TestRenderViewHost::IsRenderViewLive() const { | 281 bool TestRenderViewHost::IsRenderViewLive() const { |
282 return render_view_created_; | 282 return render_view_created_; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 423 |
424 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { | 424 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { |
425 return static_cast<TestRenderViewHost*>(active_rvh()); | 425 return static_cast<TestRenderViewHost*>(active_rvh()); |
426 } | 426 } |
427 | 427 |
428 TestWebContents* RenderViewHostImplTestHarness::contents() { | 428 TestWebContents* RenderViewHostImplTestHarness::contents() { |
429 return static_cast<TestWebContents*>(web_contents()); | 429 return static_cast<TestWebContents*>(web_contents()); |
430 } | 430 } |
431 | 431 |
432 } // namespace content | 432 } // namespace content |
OLD | NEW |