| OLD | NEW |
| 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 "content/public/common/web_preferences.h" | 9 #include "content/public/common/web_preferences.h" |
| 10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Browser -> Renderer message to stop (terminate) the embedded worker. | 46 // Browser -> Renderer message to stop (terminate) the embedded worker. |
| 47 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, | 47 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, |
| 48 int /* embedded_worker_id */) | 48 int /* embedded_worker_id */) |
| 49 | 49 |
| 50 // Renderer -> Browser message to indicate that the worker is ready for | 50 // Renderer -> Browser message to indicate that the worker is ready for |
| 51 // inspection. | 51 // inspection. |
| 52 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, | 52 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, |
| 53 int /* embedded_worker_id */) | 53 int /* embedded_worker_id */) |
| 54 | 54 |
| 55 // Renderer -> Browser message to indicate that the worker has loadedd the | 55 // Renderer -> Browser message to indicate that the worker has loaded the |
| 56 // script. | 56 // script. |
| 57 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_WorkerScriptLoaded, | 57 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded, |
| 58 int /* embedded_worker_id */) |
| 59 |
| 60 // Renderer -> Browser message to indicate that the worker thread is started. |
| 61 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_WorkerThreadStarted, |
| 58 int /* embedded_worker_id */, | 62 int /* embedded_worker_id */, |
| 59 int /* thread_id */, | 63 int /* thread_id */, |
| 60 int /* provider_id */) | 64 int /* provider_id */) |
| 61 | 65 |
| 62 // Renderer -> Browser message to indicate that the worker has failed to load | 66 // Renderer -> Browser message to indicate that the worker has failed to load |
| 63 // the script. | 67 // the script. |
| 64 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed, | 68 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed, |
| 65 int /* embedded_worker_id */) | 69 int /* embedded_worker_id */) |
| 66 | 70 |
| 67 // Renderer -> Browser message to indicate that the worker has evaluated the | 71 // Renderer -> Browser message to indicate that the worker has evaluated the |
| (...skipping 30 matching lines...) Expand all Loading... |
| 98 // for this for easier cross-thread message dispatching. | 102 // for this for easier cross-thread message dispatching. |
| 99 | 103 |
| 100 #undef IPC_MESSAGE_START | 104 #undef IPC_MESSAGE_START |
| 101 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 105 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
| 102 | 106 |
| 103 // Browser -> Renderer message to send message. | 107 // Browser -> Renderer message to send message. |
| 104 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 108 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
| 105 int /* thread_id */, | 109 int /* thread_id */, |
| 106 int /* embedded_worker_id */, | 110 int /* embedded_worker_id */, |
| 107 IPC::Message /* message */) | 111 IPC::Message /* message */) |
| OLD | NEW |