Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1872)

Unified Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 9192038: Relanding this with fixes to the mac dbg builder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.h ('k') | content/ppapi_plugin/ppapi_webkit_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_thread.cc
===================================================================
--- content/ppapi_plugin/ppapi_thread.cc (revision 118405)
+++ content/ppapi_plugin/ppapi_thread.cc (working copy)
@@ -14,7 +14,7 @@
#include "content/common/child_process_messages.h"
#include "content/ppapi_plugin/broker_process_dispatcher.h"
#include "content/ppapi_plugin/plugin_process_dispatcher.h"
-#include "content/ppapi_plugin/ppapi_webkit_thread.h"
+#include "content/ppapi_plugin/ppapi_webkitplatformsupport_impl.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/sandbox_init.h"
#include "ipc/ipc_channel_handle.h"
@@ -25,7 +25,7 @@
#include "ppapi/proxy/plugin_globals.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/proxy/interface_list.h"
-#include "webkit/plugins/ppapi/webkit_forwarding_impl.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
#if defined(OS_WIN)
#include "sandbox/src/sandbox.h"
@@ -50,6 +50,8 @@
base::RandInt(0, std::numeric_limits<PP_Module>::max())),
next_plugin_dispatcher_id_(1) {
ppapi::proxy::PluginGlobals::Get()->set_plugin_proxy_delegate(this);
+ webkit_platform_support_.reset(new PpapiWebKitPlatformSupportImpl);
+ WebKit::initialize(webkit_platform_support_.get());
}
PpapiThread::~PpapiThread() {
@@ -67,6 +69,7 @@
library_.GetFunctionPointer("PPP_ShutdownModule"));
if (shutdown_function)
shutdown_function();
+ WebKit::shutdown();
}
// The "regular" ChildThread implements this function and does some standard
@@ -111,19 +114,6 @@
return &globally_seen_instance_ids_;
}
-ppapi::WebKitForwarding* PpapiThread::GetWebKitForwarding() {
- if (!webkit_forwarding_.get())
- webkit_forwarding_.reset(new webkit::ppapi::WebKitForwardingImpl);
- return webkit_forwarding_.get();
-}
-
-void PpapiThread::PostToWebKitThread(const tracked_objects::Location& from_here,
- const base::Closure& task) {
- if (!webkit_thread_.get())
- webkit_thread_.reset(new PpapiWebKitThread);
- webkit_thread_->PostTask(from_here, task);
-}
-
bool PpapiThread::SendToBrowser(IPC::Message* msg) {
return Send(msg);
}
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.h ('k') | content/ppapi_plugin/ppapi_webkit_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698