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

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

Issue 23496052: Kill worker process by way of a sync IPC message before it cleans up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add process_ checks Created 7 years, 1 month 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 | « content/browser/worker_host/worker_process_host.cc ('k') | content/worker/worker_thread.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 GURL /* origin url */, 73 GURL /* origin url */,
74 bool /* result */) 74 bool /* result */)
75 75
76 // Sent by the worker process to check whether access to IndexedDB is allowed. 76 // Sent by the worker process to check whether access to IndexedDB is allowed.
77 IPC_SYNC_MESSAGE_CONTROL3_1(WorkerProcessHostMsg_AllowIndexedDB, 77 IPC_SYNC_MESSAGE_CONTROL3_1(WorkerProcessHostMsg_AllowIndexedDB,
78 int /* worker_route_id */, 78 int /* worker_route_id */,
79 GURL /* origin url */, 79 GURL /* origin url */,
80 string16 /* database name */, 80 string16 /* database name */,
81 bool /* result */) 81 bool /* result */)
82 82
83 // Sent by the worker process to request being killed.
84 IPC_SYNC_MESSAGE_CONTROL0_0(WorkerProcessHostMsg_ForceKillWorker);
85
86
83 //----------------------------------------------------------------------------- 87 //-----------------------------------------------------------------------------
84 // Worker messages 88 // Worker messages
85 // 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.
86 IPC_MESSAGE_ROUTED5(WorkerMsg_StartWorkerContext, 90 IPC_MESSAGE_ROUTED5(WorkerMsg_StartWorkerContext,
87 GURL /* url */, 91 GURL /* url */,
88 string16 /* user_agent */, 92 string16 /* user_agent */,
89 string16 /* source_code */, 93 string16 /* source_code */,
90 string16 /* content_security_policy */, 94 string16 /* content_security_policy */,
91 WebKit::WebContentSecurityPolicyType) 95 WebKit::WebContentSecurityPolicyType)
92 96
93 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext) 97 IPC_MESSAGE_ROUTED0(WorkerMsg_TerminateWorkerContext)
94 98
95 IPC_MESSAGE_ROUTED2(WorkerMsg_Connect, 99 IPC_MESSAGE_ROUTED2(WorkerMsg_Connect,
96 int /* sent_message_port_id */, 100 int /* sent_message_port_id */,
97 int /* routing_id */) 101 int /* routing_id */)
98 102
99 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed) 103 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed)
100 104
101 105
102 //----------------------------------------------------------------------------- 106 //-----------------------------------------------------------------------------
103 // WorkerHost messages 107 // WorkerHost messages
104 // These are messages sent from the worker process to the renderer process. 108 // These are messages sent from the worker process to the renderer process.
105 // WorkerMsg_PostMessage is also sent here. 109 // WorkerMsg_PostMessage is also sent here.
106 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, 110 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed,
107 int /* worker_route_id */) 111 int /* worker_route_id */)
108 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) 112 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed)
OLDNEW
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | content/worker/worker_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698