| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "base/trace_event/trace_event.h" | 30 #include "base/trace_event/trace_event.h" |
| 31 #include "build/build_config.h" | 31 #include "build/build_config.h" |
| 32 #include "components/mime_util/mime_util.h" | 32 #include "components/mime_util/mime_util.h" |
| 33 #include "components/url_formatter/url_formatter.h" | 33 #include "components/url_formatter/url_formatter.h" |
| 34 #include "content/browser/accessibility/accessibility_mode_helper.h" | 34 #include "content/browser/accessibility/accessibility_mode_helper.h" |
| 35 #include "content/browser/accessibility/browser_accessibility_state_impl.h" | 35 #include "content/browser/accessibility/browser_accessibility_state_impl.h" |
| 36 #include "content/browser/bad_message.h" | 36 #include "content/browser/bad_message.h" |
| 37 #include "content/browser/browser_plugin/browser_plugin_embedder.h" | 37 #include "content/browser/browser_plugin/browser_plugin_embedder.h" |
| 38 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 38 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 39 #include "content/browser/child_process_security_policy_impl.h" | 39 #include "content/browser/child_process_security_policy_impl.h" |
| 40 #include "content/browser/devtools/devtools_manager.h" |
| 40 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 41 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 41 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 42 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
| 42 #include "content/browser/download/download_stats.h" | 43 #include "content/browser/download/download_stats.h" |
| 43 #include "content/browser/download/mhtml_generation_manager.h" | 44 #include "content/browser/download/mhtml_generation_manager.h" |
| 44 #include "content/browser/download/save_package.h" | 45 #include "content/browser/download/save_package.h" |
| 45 #include "content/browser/find_request_manager.h" | 46 #include "content/browser/find_request_manager.h" |
| 46 #include "content/browser/frame_host/cross_process_frame_connector.h" | 47 #include "content/browser/frame_host/cross_process_frame_connector.h" |
| 47 #include "content/browser/frame_host/frame_tree_node.h" | 48 #include "content/browser/frame_host/frame_tree_node.h" |
| 48 #include "content/browser/frame_host/interstitial_page_impl.h" | 49 #include "content/browser/frame_host/interstitial_page_impl.h" |
| 49 #include "content/browser/frame_host/navigation_entry_impl.h" | 50 #include "content/browser/frame_host/navigation_entry_impl.h" |
| (...skipping 4237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4287 | 4288 |
| 4288 NotificationService::current()->Notify( | 4289 NotificationService::current()->Notify( |
| 4289 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED, | 4290 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED, |
| 4290 Source<WebContents>(this), | 4291 Source<WebContents>(this), |
| 4291 Details<RenderViewHost>(render_view_host)); | 4292 Details<RenderViewHost>(render_view_host)); |
| 4292 | 4293 |
| 4293 view_->RenderViewCreated(render_view_host); | 4294 view_->RenderViewCreated(render_view_host); |
| 4294 | 4295 |
| 4295 FOR_EACH_OBSERVER( | 4296 FOR_EACH_OBSERVER( |
| 4296 WebContentsObserver, observers_, RenderViewCreated(render_view_host)); | 4297 WebContentsObserver, observers_, RenderViewCreated(render_view_host)); |
| 4298 |
| 4299 DevToolsManager::GetInstance()->WebContentsCreated(this); |
| 4297 } | 4300 } |
| 4298 | 4301 |
| 4299 void WebContentsImpl::RenderViewReady(RenderViewHost* rvh) { | 4302 void WebContentsImpl::RenderViewReady(RenderViewHost* rvh) { |
| 4300 if (rvh != GetRenderViewHost()) { | 4303 if (rvh != GetRenderViewHost()) { |
| 4301 // Don't notify the world, since this came from a renderer in the | 4304 // Don't notify the world, since this came from a renderer in the |
| 4302 // background. | 4305 // background. |
| 4303 return; | 4306 return; |
| 4304 } | 4307 } |
| 4305 | 4308 |
| 4306 notify_disconnection_ = true; | 4309 notify_disconnection_ = true; |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5278 dialog_manager_ = dialog_manager; | 5281 dialog_manager_ = dialog_manager; |
| 5279 } | 5282 } |
| 5280 | 5283 |
| 5281 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { | 5284 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { |
| 5282 auto it = binding_sets_.find(interface_name); | 5285 auto it = binding_sets_.find(interface_name); |
| 5283 if (it != binding_sets_.end()) | 5286 if (it != binding_sets_.end()) |
| 5284 binding_sets_.erase(it); | 5287 binding_sets_.erase(it); |
| 5285 } | 5288 } |
| 5286 | 5289 |
| 5287 } // namespace content | 5290 } // namespace content |
| OLD | NEW |