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

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

Issue 931173002: Implement EmbeddedWorkerContextClient.setCachedMetadata/clearCachedMetadata (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // ServiceWorker. 223 // ServiceWorker.
224 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments, 224 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_GetClientDocuments,
225 int /* request_id */) 225 int /* request_id */)
226 226
227 // Sends a 'message' event to a client document (renderer->browser). 227 // Sends a 'message' event to a client document (renderer->browser).
228 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument, 228 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_PostMessageToDocument,
229 int /* client_id */, 229 int /* client_id */,
230 base::string16 /* message */, 230 base::string16 /* message */,
231 std::vector<int> /* sent_message_port_ids */) 231 std::vector<int> /* sent_message_port_ids */)
232 232
233 // Renderer -> Browser message to request that the browser cache |data|
234 // associated with |url|.
235 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_SetCachedMetadata,
236 GURL /* url */,
237 std::vector<char> /* data */)
michaeln 2015/02/18 03:37:34 how large can the data be?
horo 2015/02/18 04:17:06 Pickle::WriteBytes() treats the length as int. So
michaeln 2015/02/18 19:17:00 I guess I meant how large is this in practice. Pro
horo 2015/02/19 00:08:43 According to the UMA of V8.CodeCacheSizeRatio, the
238
239 // Renderer -> Browser message to request that the browser clear the cache
240 // associated with |url|.
241 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_ClearCachedMetadata, GURL /* url */)
242
233 // Ask the browser to open a tab/window (renderer->browser). 243 // Ask the browser to open a tab/window (renderer->browser).
234 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow, 244 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_OpenWindow,
235 int /* request_id */, 245 int /* request_id */,
236 GURL /* url */) 246 GURL /* url */)
237 247
238 // Ask the browser to focus a client (renderer->browser). 248 // Ask the browser to focus a client (renderer->browser).
239 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient, 249 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_FocusClient,
240 int /* request_id */, 250 int /* request_id */,
241 int /* client_id */) 251 int /* client_id */)
242 252
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 blink::WebServiceWorkerCacheError) 532 blink::WebServiceWorkerCacheError)
523 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 533 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
524 int /* request_id */, 534 int /* request_id */,
525 blink::WebServiceWorkerCacheError) 535 blink::WebServiceWorkerCacheError)
526 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 536 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
527 int /* request_id */, 537 int /* request_id */,
528 blink::WebServiceWorkerCacheError) 538 blink::WebServiceWorkerCacheError)
529 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 539 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
530 int /* request_id */, 540 int /* request_id */,
531 blink::WebServiceWorkerCacheError) 541 blink::WebServiceWorkerCacheError)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698