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

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: address comments 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>
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting, 313 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_SkipWaiting,
314 int /* request_id */) 314 int /* request_id */)
315 315
316 // Asks the browser to have this worker take control of pages that match 316 // Asks the browser to have this worker take control of pages that match
317 // its scope. 317 // its scope.
318 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients, 318 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClaimClients,
319 int /* request_id */) 319 int /* request_id */)
320 320
321 // Informs the browser of new foreign fetch subscopes this worker wants to 321 // Informs the browser of new foreign fetch subscopes this worker wants to
322 // handle. Should only be sent while an install event is being handled. 322 // handle. Should only be sent while an install event is being handled.
323 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_RegisterForeignFetchScopes, 323 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_RegisterForeignFetchScopes,
324 std::vector<GURL> /* sub_scopes */) 324 std::vector<GURL> /* sub_scopes */,
325 std::vector<GURL> /* origins */)
325 326
326 //--------------------------------------------------------------------------- 327 //---------------------------------------------------------------------------
327 // Messages sent from the browser to the child process. 328 // Messages sent from the browser to the child process.
328 // 329 //
329 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have 330 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have
330 // a thread_id as their first field so that ServiceWorkerMessageFilter can 331 // a thread_id as their first field so that ServiceWorkerMessageFilter can
331 // extract it and dispatch the message to the correct ServiceWorkerDispatcher 332 // extract it and dispatch the message to the correct ServiceWorkerDispatcher
332 // on the correct thread. 333 // on the correct thread.
333 334
334 // Informs the child process that the given provider gets associated or 335 // Informs the child process that the given provider gets associated or
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 529
529 // Sent via EmbeddedWorker as a response of NavigateClient. 530 // Sent via EmbeddedWorker as a response of NavigateClient.
530 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 531 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
531 int /* request_id */, 532 int /* request_id */,
532 content::ServiceWorkerClientInfo /* client */) 533 content::ServiceWorkerClientInfo /* client */)
533 534
534 // Sent via EmbeddedWorker as an error response of NavigateClient. 535 // Sent via EmbeddedWorker as an error response of NavigateClient.
535 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 536 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
536 int /* request_id */, 537 int /* request_id */,
537 GURL /* url */) 538 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698