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

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

Issue 1656933003: Add origins argument to registerForeignFetchScopes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add url::Origin::operator== to make tests simpler Created 4 years, 10 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
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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "content/common/service_worker/service_worker_client_info.h" 13 #include "content/common/service_worker/service_worker_client_info.h"
14 #include "content/common/service_worker/service_worker_status_code.h" 14 #include "content/common/service_worker/service_worker_status_code.h"
15 #include "content/common/service_worker/service_worker_types.h" 15 #include "content/common/service_worker/service_worker_types.h"
16 #include "content/public/common/message_port_types.h" 16 #include "content/public/common/message_port_types.h"
17 #include "content/public/common/navigator_connect_client.h" 17 #include "content/public/common/navigator_connect_client.h"
18 #include "content/public/common/platform_notification_data.h" 18 #include "content/public/common/platform_notification_data.h"
19 #include "content/public/common/push_event_payload.h" 19 #include "content/public/common/push_event_payload.h"
20 #include "ipc/ipc_message_macros.h" 20 #include "ipc/ipc_message_macros.h"
21 #include "ipc/ipc_param_traits.h" 21 #include "ipc/ipc_param_traits.h"
22 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" 22 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
23 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 23 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
24 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h" 24 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h"
25 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h" 25 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 #include "url/origin.h"
27 28
28 #undef IPC_MESSAGE_EXPORT 29 #undef IPC_MESSAGE_EXPORT
29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 30 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
30 31
31 #define IPC_MESSAGE_START ServiceWorkerMsgStart 32 #define IPC_MESSAGE_START ServiceWorkerMsgStart
32 33
33 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType, 34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType,
34 blink::WebServiceWorkerError::ErrorTypeLast) 35 blink::WebServiceWorkerError::ErrorTypeLast)
35 36
36 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult, 37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerEventResult,
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, 317 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting,
317 int /* request_id */) 318 int /* request_id */)
318 319
319 // Asks the browser to have this worker take control of pages that match 320 // Asks the browser to have this worker take control of pages that match
320 // its scope. 321 // its scope.
321 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, 322 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients,
322 int /* request_id */) 323 int /* request_id */)
323 324
324 // Informs the browser of new foreign fetch subscopes this worker wants to 325 // Informs the browser of new foreign fetch subscopes this worker wants to
325 // handle. Should only be sent while an install event is being handled. 326 // handle. Should only be sent while an install event is being handled.
326 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_RegisterForeignFetchScopes, 327 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_RegisterForeignFetchScopes,
327 std::vector<GURL> /* sub_scopes */) 328 std::vector<GURL> /* sub_scopes */,
329 std::vector<url::Origin> /* origins */)
328 330
329 //--------------------------------------------------------------------------- 331 //---------------------------------------------------------------------------
330 // Messages sent from the browser to the child process. 332 // Messages sent from the browser to the child process.
331 // 333 //
332 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have 334 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have
333 // a thread_id as their first field so that ServiceWorkerMessageFilter can 335 // a thread_id as their first field so that ServiceWorkerMessageFilter can
334 // extract it and dispatch the message to the correct ServiceWorkerDispatcher 336 // extract it and dispatch the message to the correct ServiceWorkerDispatcher
335 // on the correct thread. 337 // on the correct thread.
336 338
337 // Informs the child process that the given provider gets associated or 339 // Informs the child process that the given provider gets associated or
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 537
536 // Sent via EmbeddedWorker as a response of NavigateClient. 538 // Sent via EmbeddedWorker as a response of NavigateClient.
537 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
538 int /* request_id */, 540 int /* request_id */,
539 content::ServiceWorkerClientInfo /* client */) 541 content::ServiceWorkerClientInfo /* client */)
540 542
541 // Sent via EmbeddedWorker as an error response of NavigateClient. 543 // Sent via EmbeddedWorker as an error response of NavigateClient.
542 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 544 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
543 int /* request_id */, 545 int /* request_id */,
544 GURL /* url */) 546 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698