summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 18:36:46 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 18:36:46 +0000
commit173de1be12780200c62bae5c01965d51ac0eaa31 (patch)
tree5ab851b72e8012f49a4d80b281744a6b64d40753 /chrome/common
parent1f2763de9d897fc2b0e6da4c2323b7d8ab70c687 (diff)
downloadchromium_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/common')
-rw-r--r--chrome/common/chrome_plugin_api.h1
-rw-r--r--chrome/common/chrome_switches.cc3
-rw-r--r--chrome/common/chrome_switches.h2
-rw-r--r--chrome/common/render_messages_internal.h10
4 files changed, 16 insertions, 0 deletions
diff --git a/chrome/common/chrome_plugin_api.h b/chrome/common/chrome_plugin_api.h
index 1dd08727..af21699 100644
--- a/chrome/common/chrome_plugin_api.h
+++ b/chrome/common/chrome_plugin_api.h
@@ -67,6 +67,7 @@ typedef unsigned char CPBool;
typedef enum {
CP_PROCESS_BROWSER = 0,
CP_PROCESS_PLUGIN,
+ CP_PROCESS_RENDERER,
} CPProcessType;
// Return codes. Error values are negative.
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 47f3080..c36d710 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -330,6 +330,9 @@ const wchar_t kUseLowFragHeapCrt[] = L"use-lf-heap";
const wchar_t kGearsPluginPathOverride[] = L"gears-plugin-path";
#endif
+// Switch to load Gears in the renderer process.
+const wchar_t kGearsInRenderer[] = L"gears-in-renderer";
+
// Enable new HTTP stack.
const wchar_t kUseNewHttp[] = L"new-http";
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index fbffc88..11ce1bc 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -137,6 +137,8 @@ extern const wchar_t kUseLowFragHeapCrt[];
extern const wchar_t kGearsPluginPathOverride[];
#endif
+extern const wchar_t kGearsInRenderer[];
+
extern const wchar_t kUseNewHttp[];
extern const wchar_t kJavaScriptDebuggerPath[];
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 334b902..841f661 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -650,6 +650,16 @@ IPC_BEGIN_MESSAGES(ViewHost, 2)
std::wstring /* filename */,
std::string /* actual mime type for url */)
+ // Retrieve the data directory associated with the renderer's profile.
+ IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetDataDir,
+ std::wstring /* data_dir_retval */)
+
+ // Allows a chrome plugin loaded in a renderer process to send arbitrary
+ // data to an instance of the same plugin loaded in the browser process.
+ IPC_MESSAGE_CONTROL2(ViewHostMsg_PluginMessage,
+ std::wstring /* dll_path of plugin */,
+ std::vector<uint8> /* opaque data */)
+
// Requests spellcheck for a word.
IPC_SYNC_MESSAGE_ROUTED1_2(ViewHostMsg_SpellCheck,
std::wstring /* word to check */,