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

Unified Diff: content/common/service_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/service_worker/service_worker_types.cc ('k') | content/common/service_worker_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_worker_messages.h
diff --git a/content/common/service_worker_messages.h b/content/common/service_worker_messages.h
deleted file mode 100644
index 78beb73bcacef243b06f41ff6e92b4b8c1737cc6..0000000000000000000000000000000000000000
--- a/content/common/service_worker_messages.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Message definition file, included multiple times, hence no include guard.
-
-#include "base/strings/string16.h"
-#include "content/common/service_worker_types.h"
-#include "ipc/ipc_message_macros.h"
-#include "ipc/ipc_param_traits.h"
-#include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
-#include "url/gurl.h"
-
-IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest)
- IPC_STRUCT_TRAITS_MEMBER(url)
- IPC_STRUCT_TRAITS_MEMBER(method)
- IPC_STRUCT_TRAITS_MEMBER(headers)
-IPC_STRUCT_TRAITS_END()
-
-#undef IPC_MESSAGE_EXPORT
-#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
-
-#define IPC_MESSAGE_START ServiceWorkerMsgStart
-
-IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType)
-
-// Messages sent from the child process to the browser.
-
-IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker,
- int32 /* thread_id */,
- int32 /* request_id */,
- GURL /* scope */,
- GURL /* script_url */)
-
-IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker,
- int32 /* thread_id */,
- int32 /* request_id */,
- GURL /* scope (url pattern) */)
-
-// Messages sent from the browser to the child process.
-
-// Response to ServiceWorkerMsg_RegisterServiceWorker
-IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered,
- int32 /* thread_id */,
- int32 /* request_id */,
- int64 /* service_worker_id */)
-
-// Response to ServiceWorkerMsg_UnregisterServiceWorker
-IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
- int32 /* thread_id */,
- int32 /* request_id */)
-
-// Sent when any kind of registration error occurs during a
-// RegisterServiceWorker / UnregisterServiceWorker handler above.
-IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
- int32 /* thread_id */,
- int32 /* request_id */,
- blink::WebServiceWorkerError::ErrorType /* code */,
- base::string16 /* message */)
-
-// Informs the browser of a new ServiceWorkerProvider in the child process,
-// |provider_id| is unique within its child process.
-IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
- int /* provider_id */)
-
-// Informs the browser of a ServiceWorkerProvider being destroyed.
-IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
- int /* provider_id */)
-
-// For EmbeddedWorker related messages -------------------------------------
-
-// Browser -> Renderer message to create a new embedded worker context.
-IPC_MESSAGE_CONTROL3(EmbeddedWorkerMsg_StartWorker,
- int /* embedded_worker_id */,
- int64 /* service_worker_version_id */,
- GURL /* script_url */)
-
-// Browser -> Renderer message to stop (terminate) the embedded worker.
-IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker,
- int /* embedded_worker_id */)
-
-// Renderer -> Browser message to indicate that the worker is started.
-IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted,
- int /* thread_id */,
- int /* embedded_worker_id */)
-
-// Renderer -> Browser message to indicate that the worker is stopped.
-IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped,
- int /* embedded_worker_id */)
-
-// ---------------------------------------------------------------------------
-// For EmbeddedWorkerContext related messages, which are directly sent from
-// browser to the worker thread in the child process. We use a new message class
-// for this for easier cross-thread message dispatching.
-
-#undef IPC_MESSAGE_START
-#define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart
-
-IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_FetchEvent,
- int /* thread_id */,
- int /* embedded_worker_id */,
- content::ServiceWorkerFetchRequest)
« no previous file with comments | « content/common/service_worker/service_worker_types.cc ('k') | content/common/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698