| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 2978fb9e1c1e386f7eec5be92e6fee02b2192435..9f7962b2a8b62b31e8308700005854ac448de655 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -57,6 +57,7 @@
|
| #include "content/browser/media/capture/web_contents_audio_muter.h"
|
| #include "content/browser/media/media_web_contents_observer.h"
|
| #include "content/browser/media/session/media_session.h"
|
| +#include "content/browser/media/session/pepper_web_contents_observer.h"
|
| #include "content/browser/message_port_message_filter.h"
|
| #include "content/browser/plugin_content_origin_whitelist.h"
|
| #include "content/browser/renderer_host/render_process_host_impl.h"
|
| @@ -427,6 +428,9 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context)
|
| #else
|
| media_web_contents_observer_.reset(new MediaWebContentsObserver(this));
|
| #endif
|
| +#if defined(ENABLE_PLUGINS)
|
| + pepper_web_contents_observer_.reset(new PepperWebContentsObserver(this));
|
| +#endif
|
| loader_io_thread_notifier_.reset(new LoaderIOThreadNotifier(this));
|
| wake_lock_service_context_.reset(new WakeLockServiceContext(this));
|
| }
|
| @@ -3699,12 +3703,14 @@ void WebContentsImpl::OnWebUISend(const GURL& source_url,
|
| }
|
|
|
| #if defined(ENABLE_PLUGINS)
|
| -void WebContentsImpl::OnPepperInstanceCreated() {
|
| - FOR_EACH_OBSERVER(WebContentsObserver, observers_, PepperInstanceCreated());
|
| +void WebContentsImpl::OnPepperInstanceCreated(int32_t pp_instance) {
|
| + FOR_EACH_OBSERVER(WebContentsObserver, observers_,
|
| + PepperInstanceCreated(pp_instance));
|
| }
|
|
|
| -void WebContentsImpl::OnPepperInstanceDeleted() {
|
| - FOR_EACH_OBSERVER(WebContentsObserver, observers_, PepperInstanceDeleted());
|
| +void WebContentsImpl::OnPepperInstanceDeleted(int32_t pp_instance) {
|
| + FOR_EACH_OBSERVER(WebContentsObserver, observers_,
|
| + PepperInstanceDeleted(pp_instance));
|
| }
|
|
|
| void WebContentsImpl::OnPepperPluginHung(int plugin_child_id,
|
|
|