diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 18:36:46 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 18:36:46 +0000 |
commit | 173de1be12780200c62bae5c01965d51ac0eaa31 (patch) | |
tree | 5ab851b72e8012f49a4d80b281744a6b64d40753 /chrome/browser/chrome_plugin_host.cc | |
parent | 1f2763de9d897fc2b0e6da4c2323b7d8ab70c687 (diff) | |
download | chromium_src-173de1be12780200c62bae5c01965d51ac0eaa31.zip chromium_src-173de1be12780200c62bae5c01965d51ac0eaa31.tar.gz chromium_src-173de1be12780200c62bae5c01965d51ac0eaa31.tar.bz2 |
Step 1 at making Gears run in the renderer process (enabled by switch
"--gears-in-renderer"). Requires some changes to gears to work. Most things
work if you disable the sandbox. One major hole is that update tasks don't
report status to the appropriate renderer.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@954 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_plugin_host.cc')
-rw-r--r-- | chrome/browser/chrome_plugin_host.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/chrome_plugin_host.cc b/chrome/browser/chrome_plugin_host.cc index 65600b8..ed6c6f5 100644 --- a/chrome/browser/chrome_plugin_host.cc +++ b/chrome/browser/chrome_plugin_host.cc @@ -31,6 +31,7 @@ #include <set> +#include "base/command_line.h" #include "base/file_util.h" #include "base/histogram.h" #include "base/message_loop.h" @@ -52,6 +53,7 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_plugin_lib.h" #include "chrome/common/chrome_plugin_util.h" +#include "chrome/common/chrome_switches.h" #include "chrome/common/notification_service.h" #include "chrome/common/net/url_request_intercept_job.h" #include "chrome/common/plugin_messages.h" @@ -658,6 +660,12 @@ CPProcessType STDCALL CPB_GetProcessType(CPID id) { } CPError STDCALL CPB_SendMessage(CPID id, const void *data, uint32 data_len) { + CommandLine cmd; + if (cmd.HasSwitch(switches::kGearsInRenderer)) { + // TODO(mpcomplete): figure out what to do here. + return CPERR_FAILURE; + } + CHECK(ChromePluginLib::IsPluginThread()); ChromePluginLib* plugin = ChromePluginLib::FromCPID(id); CHECK(plugin); |