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

Side by Side Diff: chrome/common/worker_messages_internal.h

Issue 27157: Initial checkin of the out of process worker implementation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « chrome/common/worker_messages.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/string16.h"
6 #include "chrome/common/ipc_message_macros.h"
7 #include "googleurl/src/gurl.h"
8
9
10 //-----------------------------------------------------------------------------
11 // WorkerProcess messages
12 // These are messages sent from the browser to the worker process.
13 IPC_BEGIN_MESSAGES(WorkerProcess)
14 IPC_MESSAGE_CONTROL2(WorkerProcessMsg_CreateWorker,
15 GURL /* url */,
16 int /* route_id */)
17 IPC_END_MESSAGES(WorkerProcess)
18
19
20 //-----------------------------------------------------------------------------
21 // WorkerProcessHost messages
22 // These are messages sent from the worker process to the browser process.
23
24 // No messages being sent in this direction for now.
25 //IPC_BEGIN_MESSAGES(WorkerProcessHost)
26 //IPC_END_MESSAGES(WorkerProcessHost)
27
28 //-----------------------------------------------------------------------------
29 // Worker messages
30 // These are messages sent from the renderer process to the worker process.
31 IPC_BEGIN_MESSAGES(Worker)
32 IPC_MESSAGE_ROUTED3(WorkerMsg_StartWorkerContext,
33 GURL /* url */,
34 string16 /* user_agent */,
35 string16 /* source_code */)
36
37 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext)
38
39 IPC_MESSAGE_ROUTED1(WorkerMsg_PostMessageToWorkerContext,
40 string16 /* message */)
41
42 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed)
43 IPC_END_MESSAGES(Worker)
44
45
46 //-----------------------------------------------------------------------------
47 // WorkerHost messages
48 // These are messages sent from the worker process to the renderer process.
49 IPC_BEGIN_MESSAGES(WorkerHost)
50 IPC_MESSAGE_ROUTED1(WorkerHostMsg_PostMessageToWorkerObject,
51 string16 /* message */)
52
53 IPC_MESSAGE_ROUTED3(WorkerHostMsg_PostExceptionToWorkerObject,
54 string16 /* error_message */,
55 int /* line_number */,
56 string16 /* source_url*/)
57
58 IPC_MESSAGE_ROUTED6(WorkerHostMsg_PostConsoleMessageToWorkerObject,
59 int /* destination */,
60 int /* source */,
61 int /* level */,
62 string16 /* message */,
63 int /* line_number */,
64 string16 /* source_url */)
65
66 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject,
67 bool /* bool has_pending_activity */)
68
69 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity,
70 bool /* bool has_pending_activity */)
71
72 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed)
73 IPC_END_MESSAGES(WorkerHost)
OLDNEW
« no previous file with comments | « chrome/common/worker_messages.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698