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

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

Issue 6055002: Create a message filter for message port messages. This allows a nice cleanu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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 <utility> 5 #include <utility>
6 #include <vector> 6 #include <vector>
7 #include "base/string16.h" 7 #include "base/string16.h"
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Sends the browser all the queued messages that arrived at this message port 69 // Sends the browser all the queued messages that arrived at this message port
70 // after it was sent in a postMessage call. 70 // after it was sent in a postMessage call.
71 // NOTE: MSVS can't compile the macro if std::vector<std::pair<string16, int> > 71 // NOTE: MSVS can't compile the macro if std::vector<std::pair<string16, int> >
72 // is used, so we typedef it in worker_messages.h. 72 // is used, so we typedef it in worker_messages.h.
73 IPC_MESSAGE_CONTROL2(WorkerProcessHostMsg_SendQueuedMessages, 73 IPC_MESSAGE_CONTROL2(WorkerProcessHostMsg_SendQueuedMessages,
74 int /* message_port_id */, 74 int /* message_port_id */,
75 std::vector<QueuedMessage> /* queued_messages */) 75 std::vector<QueuedMessage> /* queued_messages */)
76 76
77 // Sent by the worker process to check whether access to web databases is 77 // Sent by the worker process to check whether access to web databases is
78 // granted by content settings. 78 // granted by content settings.
79 IPC_SYNC_MESSAGE_ROUTED4_1(WorkerProcessHostMsg_AllowDatabase, 79 IPC_SYNC_MESSAGE_CONTROL5_1(WorkerProcessHostMsg_AllowDatabase,
80 GURL /* origin url */, 80 int /* worker_route_id */,
81 string16 /* database name */, 81 GURL /* origin url */,
82 string16 /* database display name */, 82 string16 /* database name */,
83 unsigned long /* estimated size */, 83 string16 /* database display name */,
84 bool /* result */) 84 unsigned long /* estimated size */,
85 bool /* result */)
85 86
86 //----------------------------------------------------------------------------- 87 //-----------------------------------------------------------------------------
87 // Worker messages 88 // Worker messages
88 // These are messages sent from the renderer process to the worker process. 89 // These are messages sent from the renderer process to the worker process.
89 IPC_MESSAGE_ROUTED3(WorkerMsg_StartWorkerContext, 90 IPC_MESSAGE_ROUTED3(WorkerMsg_StartWorkerContext,
90 GURL /* url */, 91 GURL /* url */,
91 string16 /* user_agent */, 92 string16 /* user_agent */,
92 string16 /* source_code */) 93 string16 /* source_code */)
93 94
94 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext) 95 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext)
(...skipping 24 matching lines...) Expand all
119 120
120 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, 121 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject,
121 bool /* bool has_pending_activity */) 122 bool /* bool has_pending_activity */)
122 123
123 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, 124 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity,
124 bool /* bool has_pending_activity */) 125 bool /* bool has_pending_activity */)
125 126
126 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, 127 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed,
127 int /* worker_route_id */) 128 int /* worker_route_id */)
128 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) 129 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698