| 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 3683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3694 // This exists for render views that don't have a WebUI, but do have WebUI | 3694 // This exists for render views that don't have a WebUI, but do have WebUI |
| 3695 // bindings enabled. | 3695 // bindings enabled. |
| 3696 void WebContentsImpl::OnWebUISend(const GURL& source_url, | 3696 void WebContentsImpl::OnWebUISend(const GURL& source_url, |
| 3697 const std::string& name, | 3697 const std::string& name, |
| 3698 const base::ListValue& args) { | 3698 const base::ListValue& args) { |
| 3699 if (delegate_) | 3699 if (delegate_) |
| 3700 delegate_->WebUISend(this, source_url, name, args); | 3700 delegate_->WebUISend(this, source_url, name, args); |
| 3701 } | 3701 } |
| 3702 | 3702 |
| 3703 #if defined(ENABLE_PLUGINS) | 3703 #if defined(ENABLE_PLUGINS) |
| 3704 void WebContentsImpl::OnPepperInstanceCreated() { | 3704 void WebContentsImpl::OnPepperInstanceCreated(int32_t pp_instance) { |
| 3705 FOR_EACH_OBSERVER(WebContentsObserver, observers_, PepperInstanceCreated()); | 3705 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3706 PepperInstanceCreated(pp_instance)); |
| 3706 } | 3707 } |
| 3707 | 3708 |
| 3708 void WebContentsImpl::OnPepperInstanceDeleted() { | 3709 void WebContentsImpl::OnPepperInstanceDeleted(int32_t pp_instance) { |
| 3709 FOR_EACH_OBSERVER(WebContentsObserver, observers_, PepperInstanceDeleted()); | 3710 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3711 PepperInstanceDeleted(pp_instance)); |
| 3710 } | 3712 } |
| 3711 | 3713 |
| 3712 void WebContentsImpl::OnPepperPluginHung(int plugin_child_id, | 3714 void WebContentsImpl::OnPepperPluginHung(int plugin_child_id, |
| 3713 const base::FilePath& path, | 3715 const base::FilePath& path, |
| 3714 bool is_hung) { | 3716 bool is_hung) { |
| 3715 UMA_HISTOGRAM_COUNTS("Pepper.PluginHung", 1); | 3717 UMA_HISTOGRAM_COUNTS("Pepper.PluginHung", 1); |
| 3716 | 3718 |
| 3717 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3719 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3718 PluginHungStatusChanged(plugin_child_id, path, is_hung)); | 3720 PluginHungStatusChanged(plugin_child_id, path, is_hung)); |
| 3719 } | 3721 } |
| (...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5127 for (RenderViewHost* render_view_host : render_view_host_set) | 5129 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5128 render_view_host->OnWebkitPreferencesChanged(); | 5130 render_view_host->OnWebkitPreferencesChanged(); |
| 5129 } | 5131 } |
| 5130 | 5132 |
| 5131 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 5133 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
| 5132 JavaScriptDialogManager* dialog_manager) { | 5134 JavaScriptDialogManager* dialog_manager) { |
| 5133 dialog_manager_ = dialog_manager; | 5135 dialog_manager_ = dialog_manager; |
| 5134 } | 5136 } |
| 5135 | 5137 |
| 5136 } // namespace content | 5138 } // namespace content |
| OLD | NEW |