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

Side by Side Diff: content/common/view_messages.h

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: same as PS6 Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 // RenderFrame routing id used to send messages back to the parent. 308 // RenderFrame routing id used to send messages back to the parent.
309 IPC_STRUCT_MEMBER(int, render_frame_route_id) 309 IPC_STRUCT_MEMBER(int, render_frame_route_id)
310 310
311 // Address space of the context that created the worker. 311 // Address space of the context that created the worker.
312 IPC_STRUCT_MEMBER(blink::WebAddressSpace, creation_address_space) 312 IPC_STRUCT_MEMBER(blink::WebAddressSpace, creation_address_space)
313 313
314 // The type (secure or nonsecure) of the context that created the worker. 314 // The type (secure or nonsecure) of the context that created the worker.
315 IPC_STRUCT_MEMBER(blink::WebSharedWorkerCreationContextType, 315 IPC_STRUCT_MEMBER(blink::WebSharedWorkerCreationContextType,
316 creation_context_type) 316 creation_context_type)
317
318 // Whether Data-Saver is enabled or not.
319 IPC_STRUCT_MEMBER(bool, data_saver_enabled)
317 IPC_STRUCT_END() 320 IPC_STRUCT_END()
318 321
319 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Reply) 322 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Reply)
320 // The route id for the created worker. 323 // The route id for the created worker.
321 IPC_STRUCT_MEMBER(int, route_id) 324 IPC_STRUCT_MEMBER(int, route_id)
322 325
323 // The error that occurred, if the browser failed to create the 326 // The error that occurred, if the browser failed to create the
324 // worker. 327 // worker.
325 IPC_STRUCT_MEMBER(blink::WebWorkerCreationError, error) 328 IPC_STRUCT_MEMBER(blink::WebWorkerCreationError, error)
326 IPC_STRUCT_END() 329 IPC_STRUCT_END()
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 int /* y */) 887 int /* y */)
885 888
886 #elif defined(OS_MACOSX) 889 #elif defined(OS_MACOSX)
887 // Receives content of a web page as plain text. 890 // Receives content of a web page as plain text.
888 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 891 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
889 #endif 892 #endif
890 893
891 // Adding a new message? Stick to the sort order above: first platform 894 // Adding a new message? Stick to the sort order above: first platform
892 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 895 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
893 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 896 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.cc ('k') | content/common/worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698