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

Side by Side Diff: content/common/worker_messages.h

Issue 9154003: Pass Content-security-policy and header type from WebSharedWorkerProxy to WebSharedWorkerStub. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | « no previous file | content/renderer/websharedworker_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Defines messages between the browser and worker process, as well as between 5 // Defines messages between the browser and worker process, as well as between
6 // the renderer and worker process. 6 // the renderer and worker process.
7 7
8 // Multiply-included message file, hence no include guard. 8 // Multiply-included message file, hence no include guard.
9 9
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
19 #include "ipc/ipc_message_utils.h" 19 #include "ipc/ipc_message_utils.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h"
20 21
21 // Singly-included section, not converted. 22 // Singly-included section, not converted.
22 #ifndef CONTENT_COMMON_WORKER_MESSAGES_H_ 23 #ifndef CONTENT_COMMON_WORKER_MESSAGES_H_
23 #define CONTENT_COMMON_WORKER_MESSAGES_H_ 24 #define CONTENT_COMMON_WORKER_MESSAGES_H_
24 25
25 typedef std::pair<string16, std::vector<int> > QueuedMessage; 26 typedef std::pair<string16, std::vector<int> > QueuedMessage;
26 27
27 #endif // CONTENT_COMMON_WORKER_MESSAGES_H_ 28 #endif // CONTENT_COMMON_WORKER_MESSAGES_H_
28 29
29 #undef IPC_MESSAGE_EXPORT 30 #undef IPC_MESSAGE_EXPORT
(...skipping 15 matching lines...) Expand all
45 46
46 // Parameter structure for WorkerProcessMsg_CreateWorker. 47 // Parameter structure for WorkerProcessMsg_CreateWorker.
47 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) 48 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params)
48 IPC_STRUCT_MEMBER(GURL, url) 49 IPC_STRUCT_MEMBER(GURL, url)
49 IPC_STRUCT_MEMBER(string16, name) 50 IPC_STRUCT_MEMBER(string16, name)
50 IPC_STRUCT_MEMBER(int, route_id) 51 IPC_STRUCT_MEMBER(int, route_id)
51 IPC_STRUCT_MEMBER(int, creator_process_id) 52 IPC_STRUCT_MEMBER(int, creator_process_id)
52 IPC_STRUCT_MEMBER(int64, shared_worker_appcache_id) 53 IPC_STRUCT_MEMBER(int64, shared_worker_appcache_id)
53 IPC_STRUCT_END() 54 IPC_STRUCT_END()
54 55
56 IPC_ENUM_TRAITS(WebKit::WebContentSecurityPolicyType)
57
55 //----------------------------------------------------------------------------- 58 //-----------------------------------------------------------------------------
56 // WorkerProcess messages 59 // WorkerProcess messages
57 // These are messages sent from the browser to the worker process. 60 // These are messages sent from the browser to the worker process.
58 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, 61 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker,
59 WorkerProcessMsg_CreateWorker_Params) 62 WorkerProcessMsg_CreateWorker_Params)
60 63
61 // Note: these Message Port related messages can also be sent to the 64 // Note: these Message Port related messages can also be sent to the
62 // renderer process. Putting them here since we don't have a shared place 65 // renderer process. Putting them here since we don't have a shared place
63 // like common_messages_internal.h 66 // like common_messages_internal.h
64 IPC_MESSAGE_ROUTED3(WorkerProcessMsg_Message, 67 IPC_MESSAGE_ROUTED3(WorkerProcessMsg_Message,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 131
129 // Sent by the worker process to check whether access to file system is allowed. 132 // Sent by the worker process to check whether access to file system is allowed.
130 IPC_SYNC_MESSAGE_CONTROL2_1(WorkerProcessHostMsg_AllowFileSystem, 133 IPC_SYNC_MESSAGE_CONTROL2_1(WorkerProcessHostMsg_AllowFileSystem,
131 int /* worker_route_id */, 134 int /* worker_route_id */,
132 GURL /* origin url */, 135 GURL /* origin url */,
133 bool /* result */) 136 bool /* result */)
134 137
135 //----------------------------------------------------------------------------- 138 //-----------------------------------------------------------------------------
136 // Worker messages 139 // Worker messages
137 // These are messages sent from the renderer process to the worker process. 140 // These are messages sent from the renderer process to the worker process.
138 IPC_MESSAGE_ROUTED3(WorkerMsg_StartWorkerContext, 141 IPC_MESSAGE_ROUTED5(WorkerMsg_StartWorkerContext,
139 GURL /* url */, 142 GURL /* url */,
140 string16 /* user_agent */, 143 string16 /* user_agent */,
141 string16 /* source_code */) 144 string16 /* source_code */,
145 string16 /* content_security_policy */,
146 WebKit::WebContentSecurityPolicyType)
142 147
143 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext) 148 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext)
144 149
145 IPC_MESSAGE_ROUTED3(WorkerMsg_PostMessage, 150 IPC_MESSAGE_ROUTED3(WorkerMsg_PostMessage,
146 string16 /* message */, 151 string16 /* message */,
147 std::vector<int> /* sent_message_port_ids */, 152 std::vector<int> /* sent_message_port_ids */,
148 std::vector<int> /* new_routing_ids */) 153 std::vector<int> /* new_routing_ids */)
149 154
150 IPC_MESSAGE_ROUTED2(WorkerMsg_Connect, 155 IPC_MESSAGE_ROUTED2(WorkerMsg_Connect,
151 int /* sent_message_port_id */, 156 int /* sent_message_port_id */,
(...skipping 16 matching lines...) Expand all
168 173
169 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, 174 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject,
170 bool /* bool has_pending_activity */) 175 bool /* bool has_pending_activity */)
171 176
172 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, 177 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity,
173 bool /* bool has_pending_activity */) 178 bool /* bool has_pending_activity */)
174 179
175 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, 180 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed,
176 int /* worker_route_id */) 181 int /* worker_route_id */)
177 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) 182 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed)
OLDNEW
« no previous file with comments | « no previous file | content/renderer/websharedworker_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698