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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 content::BrowserContext* browser_context, | 255 content::BrowserContext* browser_context, |
256 SiteInstance* site_instance, | 256 SiteInstance* site_instance, |
257 int routing_id, | 257 int routing_id, |
258 const WebContentsImpl* base_web_contents, | 258 const WebContentsImpl* base_web_contents, |
259 WebContentsImpl* opener, | 259 WebContentsImpl* opener, |
260 SessionStorageNamespaceImpl* session_storage_namespace) | 260 SessionStorageNamespaceImpl* session_storage_namespace) |
261 : delegate_(NULL), | 261 : delegate_(NULL), |
262 ALLOW_THIS_IN_INITIALIZER_LIST(controller_( | 262 ALLOW_THIS_IN_INITIALIZER_LIST(controller_( |
263 this, browser_context, session_storage_namespace)), | 263 this, browser_context, session_storage_namespace)), |
264 opener_(opener), | 264 opener_(opener), |
265 ALLOW_THIS_IN_INITIALIZER_LIST(render_manager_(this, this)), | 265 ALLOW_THIS_IN_INITIALIZER_LIST(render_manager_(this, this, this)), |
266 is_loading_(false), | 266 is_loading_(false), |
267 crashed_status_(base::TERMINATION_STATUS_STILL_RUNNING), | 267 crashed_status_(base::TERMINATION_STATUS_STILL_RUNNING), |
268 crashed_error_code_(0), | 268 crashed_error_code_(0), |
269 waiting_for_response_(false), | 269 waiting_for_response_(false), |
270 load_state_(net::LOAD_STATE_IDLE, string16()), | 270 load_state_(net::LOAD_STATE_IDLE, string16()), |
271 upload_size_(0), | 271 upload_size_(0), |
272 upload_position_(0), | 272 upload_position_(0), |
273 displayed_insecure_content_(false), | 273 displayed_insecure_content_(false), |
274 capturing_contents_(false), | 274 capturing_contents_(false), |
275 is_being_destroyed_(false), | 275 is_being_destroyed_(false), |
(...skipping 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2780 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2780 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
2781 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); | 2781 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); |
2782 // Can be NULL during tests. | 2782 // Can be NULL during tests. |
2783 if (rwh_view) | 2783 if (rwh_view) |
2784 rwh_view->SetSize(GetView()->GetContainerSize()); | 2784 rwh_view->SetSize(GetView()->GetContainerSize()); |
2785 } | 2785 } |
2786 | 2786 |
2787 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { | 2787 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { |
2788 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); | 2788 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
2789 } | 2789 } |
OLD | NEW |