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

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

Issue 489253002: Allow the browser to Send messages to an embedded worker once the script as been loaded without hav… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_DidPauseAfterDownload, 56 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_DidPauseAfterDownload,
57 int /* embedded_worker_id */) 57 int /* embedded_worker_id */)
58 58
59 // Renderer -> Browser message to indicate that the worker is ready for 59 // Renderer -> Browser message to indicate that the worker is ready for
60 // inspection. 60 // inspection.
61 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, 61 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection,
62 int /* embedded_worker_id */) 62 int /* embedded_worker_id */)
63 63
64 // Renderer -> Browser message to indicate that the worker has loadedd the 64 // Renderer -> Browser message to indicate that the worker has loadedd the
65 // script. 65 // script.
66 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded, 66 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerScriptLoaded,
67 int /* embedded_worker_id */) 67 int /* embedded_worker_id */,
68 int /* thread_id */)
68 69
69 // Renderer -> Browser message to indicate that the worker has failed to load 70 // Renderer -> Browser message to indicate that the worker has failed to load
70 // the script. 71 // the script.
71 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed, 72 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed,
72 int /* embedded_worker_id */) 73 int /* embedded_worker_id */)
73 74
74 // Renderer -> Browser message to indicate that the worker is started. 75 // Renderer -> Browser message to indicate that the worker is started.
75 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, 76 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStarted,
76 int /* thread_id */,
77 int /* embedded_worker_id */) 77 int /* embedded_worker_id */)
78 78
79 // Renderer -> Browser message to indicate that the worker is stopped. 79 // Renderer -> Browser message to indicate that the worker is stopped.
80 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, 80 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped,
81 int /* embedded_worker_id */) 81 int /* embedded_worker_id */)
82 82
83 // Renderer -> Browser message to report an exception. 83 // Renderer -> Browser message to report an exception.
84 IPC_MESSAGE_CONTROL5(EmbeddedWorkerHostMsg_ReportException, 84 IPC_MESSAGE_CONTROL5(EmbeddedWorkerHostMsg_ReportException,
85 int /* embedded_worker_id */, 85 int /* embedded_worker_id */,
86 base::string16 /* error_message */, 86 base::string16 /* error_message */,
(...skipping 13 matching lines...) Expand all
100 // for this for easier cross-thread message dispatching. 100 // for this for easier cross-thread message dispatching.
101 101
102 #undef IPC_MESSAGE_START 102 #undef IPC_MESSAGE_START
103 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart 103 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart
104 104
105 // Browser -> Renderer message to send message. 105 // Browser -> Renderer message to send message.
106 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, 106 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker,
107 int /* thread_id */, 107 int /* thread_id */,
108 int /* embedded_worker_id */, 108 int /* embedded_worker_id */,
109 IPC::Message /* message */) 109 IPC::Message /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698