summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages_internal.h
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 18:11:47 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 18:11:47 +0000
commitab3505360bf6612d18915a39a0fec74b00642e82 (patch)
tree7a39d15a688b8e52c839fb9151851b2a37533ed0 /chrome/common/render_messages_internal.h
parent06b9e3b77773477b5ee889ded41d10741d6b0647 (diff)
downloadchromium_src-ab3505360bf6612d18915a39a0fec74b00642e82.zip
chromium_src-ab3505360bf6612d18915a39a0fec74b00642e82.tar.gz
chromium_src-ab3505360bf6612d18915a39a0fec74b00642e82.tar.bz2
Initial pass of shared workers renderer-side code
Added initial interface hooks betweek WebKit code and renderer-side worker code. The proper messages are generated to fire off a shared worker, but they are currently ignored by the browser process. BUG=26233 TEST=none (will enable layout tests when basic functionality available) Review URL: http://codereview.chromium.org/340036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r--chrome/common/render_messages_internal.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index cecc9fc6..81f9c1f 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -720,9 +720,9 @@ IPC_BEGIN_MESSAGES(View)
IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
bool /* active */)
- // Response message to ViewHostMsg_CreateDedicatedWorker. Sent when the
- // worker has started.
- IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated)
+ // Response message to ViewHostMsg_CreateShared/DedicatedWorker.
+ // Sent when the worker has started.
+ IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated)
// Tell the renderer which browser window it's being attached to.
IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId,
@@ -1710,6 +1710,16 @@ IPC_BEGIN_MESSAGES(ViewHost)
int /* render_view_route_id */,
int /* route_id */)
+ // A renderer sends this to the browser process when it wants to create a
+ // shared worker. The browser will create the worker process if necessary,
+ // and will return the route id on success. On error returns
+ // MSG_ROUTING_NONE.
+ IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_CreateSharedWorker,
+ GURL /* url */,
+ string16 /* name */,
+ int /* render_view_route_id */,
+ int /* route_id */)
+
// A message sent to the browser on behalf of a renderer which wants to show
// a desktop notification.
IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDesktopNotification,
@@ -1732,7 +1742,7 @@ IPC_BEGIN_MESSAGES(ViewHost)
int /* permission_result */)
// Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker
- // message and not received a ViewMsg_DedicatedWorkerCreated reply, but in the
+ // message and not received a ViewMsg_WorkerCreated reply, but in the
// mean time it's destroyed. This tells the browser to not create the queued
// worker.
IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker,