OLD | NEW |
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 IPC_STRUCT_TRAITS_MEMBER(value) | 282 IPC_STRUCT_TRAITS_MEMBER(value) |
283 IPC_STRUCT_TRAITS_MEMBER(selection_start) | 283 IPC_STRUCT_TRAITS_MEMBER(selection_start) |
284 IPC_STRUCT_TRAITS_MEMBER(selection_end) | 284 IPC_STRUCT_TRAITS_MEMBER(selection_end) |
285 IPC_STRUCT_TRAITS_MEMBER(composition_start) | 285 IPC_STRUCT_TRAITS_MEMBER(composition_start) |
286 IPC_STRUCT_TRAITS_MEMBER(composition_end) | 286 IPC_STRUCT_TRAITS_MEMBER(composition_end) |
287 IPC_STRUCT_TRAITS_MEMBER(can_compose_inline) | 287 IPC_STRUCT_TRAITS_MEMBER(can_compose_inline) |
288 IPC_STRUCT_TRAITS_MEMBER(show_ime_if_needed) | 288 IPC_STRUCT_TRAITS_MEMBER(show_ime_if_needed) |
289 IPC_STRUCT_TRAITS_MEMBER(is_non_ime_change) | 289 IPC_STRUCT_TRAITS_MEMBER(is_non_ime_change) |
290 IPC_STRUCT_TRAITS_END() | 290 IPC_STRUCT_TRAITS_END() |
291 | 291 |
292 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) | |
293 // URL for the worker script. | |
294 IPC_STRUCT_MEMBER(GURL, url) | |
295 | |
296 // Name for a SharedWorker, otherwise empty string. | |
297 IPC_STRUCT_MEMBER(base::string16, name) | |
298 | |
299 // Security policy used in the worker. | |
300 IPC_STRUCT_MEMBER(base::string16, content_security_policy) | |
301 | |
302 // Security policy type used in the worker. | |
303 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type) | |
304 | |
305 // The ID of the parent document (unique within parent renderer). | |
306 IPC_STRUCT_MEMBER(unsigned long long, document_id) | |
307 | |
308 // RenderFrame routing id used to send messages back to the parent. | |
309 IPC_STRUCT_MEMBER(int, render_frame_route_id) | |
310 | |
311 // Address space of the context that created the worker. | |
312 IPC_STRUCT_MEMBER(blink::WebAddressSpace, creation_address_space) | |
313 | |
314 // The type (secure or nonsecure) of the context that created the worker. | |
315 IPC_STRUCT_MEMBER(blink::WebSharedWorkerCreationContextType, | |
316 creation_context_type) | |
317 IPC_STRUCT_END() | |
318 | |
319 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Reply) | |
320 // The route id for the created worker. | |
321 IPC_STRUCT_MEMBER(int, route_id) | |
322 | |
323 // The error that occurred, if the browser failed to create the | |
324 // worker. | |
325 IPC_STRUCT_MEMBER(blink::WebWorkerCreationError, error) | |
326 IPC_STRUCT_END() | |
327 | |
328 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) | 292 IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params) |
329 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) | 293 IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type) |
330 IPC_STRUCT_MEMBER(double, dialog_value) | 294 IPC_STRUCT_MEMBER(double, dialog_value) |
331 IPC_STRUCT_MEMBER(double, minimum) | 295 IPC_STRUCT_MEMBER(double, minimum) |
332 IPC_STRUCT_MEMBER(double, maximum) | 296 IPC_STRUCT_MEMBER(double, maximum) |
333 IPC_STRUCT_MEMBER(double, step) | 297 IPC_STRUCT_MEMBER(double, step) |
334 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) | 298 IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions) |
335 IPC_STRUCT_END() | 299 IPC_STRUCT_END() |
336 | 300 |
337 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params) | 301 IPC_STRUCT_BEGIN(ViewHostMsg_SelectionBounds_Params) |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 | 642 |
679 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor) | 643 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor) |
680 | 644 |
681 // Get the list of proxies to use for |url|, as a semicolon delimited list | 645 // Get the list of proxies to use for |url|, as a semicolon delimited list |
682 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". | 646 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". |
683 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, | 647 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, |
684 GURL /* url */, | 648 GURL /* url */, |
685 bool /* result */, | 649 bool /* result */, |
686 std::string /* proxy list */) | 650 std::string /* proxy list */) |
687 | 651 |
688 // A renderer sends this to the browser process when it wants to create a | |
689 // worker. The browser will create the worker process if necessary, and | |
690 // will return the route id on in the reply on success. On error returns | |
691 // MSG_ROUTING_NONE and an error type. | |
692 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, | |
693 ViewHostMsg_CreateWorker_Params, | |
694 ViewHostMsg_CreateWorker_Reply) | |
695 | |
696 // A renderer sends this to the browser process when a document has been | |
697 // detached. The browser will use this to constrain the lifecycle of worker | |
698 // processes (SharedWorkers are shut down when their last associated document | |
699 // is detached). | |
700 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, uint64_t /* document_id */) | |
701 | |
702 // A renderer sends this to the browser process when it wants to connect to a | |
703 // worker. | |
704 IPC_MESSAGE_CONTROL2(ViewHostMsg_ConnectToWorker, | |
705 int /* route_id */, | |
706 int /* sent_message_port_id */) | |
707 | |
708 // Tells the browser that a specific Appcache manifest in the current page | 652 // Tells the browser that a specific Appcache manifest in the current page |
709 // was accessed. | 653 // was accessed. |
710 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 654 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
711 GURL /* manifest url */, | 655 GURL /* manifest url */, |
712 bool /* blocked by policy */) | 656 bool /* blocked by policy */) |
713 | 657 |
714 // Used to go to the session history entry at the given offset (ie, -1 will | 658 // Used to go to the session history entry at the given offset (ie, -1 will |
715 // return the "back" item). | 659 // return the "back" item). |
716 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 660 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
717 int /* offset (from current) of history item to get */) | 661 int /* offset (from current) of history item to get */) |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 int /* y */) | 835 int /* y */) |
892 | 836 |
893 #elif defined(OS_MACOSX) | 837 #elif defined(OS_MACOSX) |
894 // Receives content of a web page as plain text. | 838 // Receives content of a web page as plain text. |
895 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 839 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
896 #endif | 840 #endif |
897 | 841 |
898 // Adding a new message? Stick to the sort order above: first platform | 842 // Adding a new message? Stick to the sort order above: first platform |
899 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 843 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
900 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 844 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |