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

Side by Side Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 12476028: Revert 187340 "PPAPI: Remove threading options; it's always on" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | ppapi/ppapi_ipc_untrusted.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ppapi_plugin/ppapi_thread.h" 5 #include "content/ppapi_plugin/ppapi_thread.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 : is_broker_(is_broker), 84 : is_broker_(is_broker),
85 connect_instance_func_(NULL), 85 connect_instance_func_(NULL),
86 local_pp_module_( 86 local_pp_module_(
87 base::RandInt(0, std::numeric_limits<PP_Module>::max())), 87 base::RandInt(0, std::numeric_limits<PP_Module>::max())),
88 next_plugin_dispatcher_id_(1), 88 next_plugin_dispatcher_id_(1),
89 ALLOW_THIS_IN_INITIALIZER_LIST(dispatcher_message_listener_(this)) { 89 ALLOW_THIS_IN_INITIALIZER_LIST(dispatcher_message_listener_(this)) {
90 ppapi::proxy::PluginGlobals* globals = ppapi::proxy::PluginGlobals::Get(); 90 ppapi::proxy::PluginGlobals* globals = ppapi::proxy::PluginGlobals::Get();
91 globals->set_plugin_proxy_delegate(this); 91 globals->set_plugin_proxy_delegate(this);
92 globals->set_command_line( 92 globals->set_command_line(
93 command_line.GetSwitchValueASCII(switches::kPpapiFlashArgs)); 93 command_line.GetSwitchValueASCII(switches::kPpapiFlashArgs));
94 globals->set_enable_threading(
95 !command_line.HasSwitch(switches::kDisablePepperThreading));
94 96
95 webkit_platform_support_.reset(new PpapiWebKitPlatformSupportImpl); 97 webkit_platform_support_.reset(new PpapiWebKitPlatformSupportImpl);
96 WebKit::initialize(webkit_platform_support_.get()); 98 WebKit::initialize(webkit_platform_support_.get());
97 99
98 // Register interfaces that expect messages from the browser process. Please 100 // Register interfaces that expect messages from the browser process. Please
99 // note that only those InterfaceProxy-based ones require registration. 101 // note that only those InterfaceProxy-based ones require registration.
100 AddRoute(ppapi::API_ID_PPB_TCPSERVERSOCKET_PRIVATE, 102 AddRoute(ppapi::API_ID_PPB_TCPSERVERSOCKET_PRIVATE,
101 &dispatcher_message_listener_); 103 &dispatcher_message_listener_);
102 AddRoute(ppapi::API_ID_PPB_TCPSOCKET_PRIVATE, 104 AddRoute(ppapi::API_ID_PPB_TCPSOCKET_PRIVATE,
103 &dispatcher_message_listener_); 105 &dispatcher_message_listener_);
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 456
455 // plugin() is NULL when in-process. Which is fine, because this is 457 // plugin() is NULL when in-process. Which is fine, because this is
456 // just a hook for setting the process name. 458 // just a hook for setting the process name.
457 if (GetContentClient()->plugin()) { 459 if (GetContentClient()->plugin()) {
458 GetContentClient()->plugin()->PluginProcessStarted( 460 GetContentClient()->plugin()->PluginProcessStarted(
459 path.BaseName().RemoveExtension().LossyDisplayName()); 461 path.BaseName().RemoveExtension().LossyDisplayName());
460 } 462 }
461 } 463 }
462 464
463 } // namespace content 465 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | ppapi/ppapi_ipc_untrusted.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698