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

Side by Side Diff: content/common/service_worker/embedded_worker_messages.h

Issue 223333002: SW: Propagate errors/exceptions from service worker to browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Renderer -> Browser message to indicate that the worker is started. 29 // Renderer -> Browser message to indicate that the worker is started.
30 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, 30 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted,
31 int /* thread_id */, 31 int /* thread_id */,
32 int /* embedded_worker_id */) 32 int /* embedded_worker_id */)
33 33
34 // Renderer -> Browser message to indicate that the worker is stopped. 34 // Renderer -> Browser message to indicate that the worker is stopped.
35 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, 35 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped,
36 int /* embedded_worker_id */) 36 int /* embedded_worker_id */)
37 37
38 // Renderer ->Browser message to send message. 38 // Renderer -> Browser message to send message.
39 // |request_id| might be used for bi-directional messaging. 39 // |request_id| might be used for bi-directional messaging.
40 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_SendMessageToBrowser, 40 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_SendMessageToBrowser,
41 int /* embedded_worker_id */, 41 int /* embedded_worker_id */,
42 int /* request_id */, 42 int /* request_id */,
43 IPC::Message /* message */) 43 IPC::Message /* message */)
44 44
45 // Renderer -> Browser message to report an exception.
46 IPC_MESSAGE_CONTROL5(EmbeddedWorkerHostMsg_ReportException,
47 int /* embedded_worker_id */,
48 base::string16 /* error_message */,
49 int /* line_number */,
50 int /* column_number */,
51 GURL /* source_url */)
52
45 // --------------------------------------------------------------------------- 53 // ---------------------------------------------------------------------------
46 // For EmbeddedWorkerContext related messages, which are directly sent from 54 // For EmbeddedWorkerContext related messages, which are directly sent from
47 // browser to the worker thread in the child process. We use a new message class 55 // browser to the worker thread in the child process. We use a new message class
48 // for this for easier cross-thread message dispatching. 56 // for this for easier cross-thread message dispatching.
49 57
50 #undef IPC_MESSAGE_START 58 #undef IPC_MESSAGE_START
51 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart 59 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart
52 60
53 // Browser -> Renderer message to send message. 61 // Browser -> Renderer message to send message.
54 // |request_id| might be used for bi-directional messaging. 62 // |request_id| might be used for bi-directional messaging.
55 IPC_MESSAGE_CONTROL4(EmbeddedWorkerContextMsg_SendMessageToWorker, 63 IPC_MESSAGE_CONTROL4(EmbeddedWorkerContextMsg_SendMessageToWorker,
56 int /* thread_id */, 64 int /* thread_id */,
57 int /* embedded_worker_id */, 65 int /* embedded_worker_id */,
58 int /* request_id */, 66 int /* request_id */,
59 IPC::Message /* message */) 67 IPC::Message /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698