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

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

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: rebase 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 int /* y */) 880 int /* y */)
878 881
879 #elif defined(OS_MACOSX) 882 #elif defined(OS_MACOSX)
880 // Receives content of a web page as plain text. 883 // Receives content of a web page as plain text.
881 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) 884 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string)
882 #endif 885 #endif
883 886
884 // Adding a new message? Stick to the sort order above: first platform 887 // Adding a new message? Stick to the sort order above: first platform
885 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 888 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
886 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 889 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698