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

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

Issue 127583002: Separate EmbeddedWorker messages into another file to use different msg class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Message definition file, included multiple times, hence no include guard.
6
7 #include <string>
8
9 #include "content/common/service_worker/service_worker_types.h"
10 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h"
12 #include "url/gurl.h"
13
14 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16
17 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest)
18 IPC_STRUCT_TRAITS_MEMBER(url)
19 IPC_STRUCT_TRAITS_MEMBER(method)
20 IPC_STRUCT_TRAITS_MEMBER(headers)
21 IPC_STRUCT_TRAITS_END()
22
23 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart
24
25 // Browser -> Renderer message to create a new embedded worker context.
26 IPC_MESSAGE_CONTROL3(EmbeddedWorkerMsg_StartWorker,
27 int /* embedded_worker_id */,
28 int64 /* service_worker_version_id */,
29 GURL /* script_url */)
30
31 // Browser -> Renderer message to stop (terminate) the embedded worker.
32 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker,
33 int /* embedded_worker_id */)
34
35 // Renderer -> Browser message to indicate that the worker is started.
36 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted,
37 int /* thread_id */,
38 int /* embedded_worker_id */)
39
40 // Renderer -> Browser message to indicate that the worker is stopped.
41 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped,
42 int /* embedded_worker_id */)
43
44 // ---------------------------------------------------------------------------
45 // For EmbeddedWorkerContext related messages, which are directly sent from
46 // browser to the worker thread in the child process. We use a new message class
47 // for this for easier cross-thread message dispatching.
48
49 #undef IPC_MESSAGE_START
50 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart
51
52 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_FetchEvent,
53 int /* thread_id */,
54 int /* embedded_worker_id */,
55 content::ServiceWorkerFetchRequest)
OLDNEW
« no previous file with comments | « content/common/service_worker/OWNERS ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698