| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 notify_disconnection_(false), | 306 notify_disconnection_(false), |
| 307 dialog_manager_(NULL), | 307 dialog_manager_(NULL), |
| 308 is_showing_before_unload_dialog_(false), | 308 is_showing_before_unload_dialog_(false), |
| 309 opener_web_ui_type_(WebUI::kNoWebUI), | 309 opener_web_ui_type_(WebUI::kNoWebUI), |
| 310 closed_by_user_gesture_(false), | 310 closed_by_user_gesture_(false), |
| 311 minimum_zoom_percent_(static_cast<int>(kMinimumZoomFactor * 100)), | 311 minimum_zoom_percent_(static_cast<int>(kMinimumZoomFactor * 100)), |
| 312 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)), | 312 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)), |
| 313 temporary_zoom_settings_(false), | 313 temporary_zoom_settings_(false), |
| 314 content_restrictions_(0), | 314 content_restrictions_(0), |
| 315 color_chooser_(NULL), | 315 color_chooser_(NULL), |
| 316 message_source_(NULL), |
| 316 fullscreen_widget_routing_id_(MSG_ROUTING_NONE) { | 317 fullscreen_widget_routing_id_(MSG_ROUTING_NONE) { |
| 317 } | 318 } |
| 318 | 319 |
| 319 WebContentsImpl::~WebContentsImpl() { | 320 WebContentsImpl::~WebContentsImpl() { |
| 320 is_being_destroyed_ = true; | 321 is_being_destroyed_ = true; |
| 321 | 322 |
| 322 for (std::set<RenderWidgetHostImpl*>::iterator iter = | 323 for (std::set<RenderWidgetHostImpl*>::iterator iter = |
| 323 created_widgets_.begin(); iter != created_widgets_.end(); ++iter) { | 324 created_widgets_.begin(); iter != created_widgets_.end(); ++iter) { |
| 324 (*iter)->DetachDelegate(); | 325 (*iter)->DetachDelegate(); |
| 325 } | 326 } |
| (...skipping 3222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3548 | 3549 |
| 3549 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() const { | 3550 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() const { |
| 3550 return browser_plugin_guest_.get(); | 3551 return browser_plugin_guest_.get(); |
| 3551 } | 3552 } |
| 3552 | 3553 |
| 3553 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const { | 3554 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const { |
| 3554 return browser_plugin_embedder_.get(); | 3555 return browser_plugin_embedder_.get(); |
| 3555 } | 3556 } |
| 3556 | 3557 |
| 3557 } // namespace content | 3558 } // namespace content |
| OLD | NEW |