| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 | 658 |
| 695 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor) | 659 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetCursor, content::WebCursor) |
| 696 | 660 |
| 697 // Get the list of proxies to use for |url|, as a semicolon delimited list | 661 // Get the list of proxies to use for |url|, as a semicolon delimited list |
| 698 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". | 662 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". |
| 699 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, | 663 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, |
| 700 GURL /* url */, | 664 GURL /* url */, |
| 701 bool /* result */, | 665 bool /* result */, |
| 702 std::string /* proxy list */) | 666 std::string /* proxy list */) |
| 703 | 667 |
| 704 // A renderer sends this to the browser process when it wants to create a | |
| 705 // worker. The browser will create the worker process if necessary, and | |
| 706 // will return the route id on in the reply on success. On error returns | |
| 707 // MSG_ROUTING_NONE and an error type. | |
| 708 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateWorker, | |
| 709 ViewHostMsg_CreateWorker_Params, | |
| 710 ViewHostMsg_CreateWorker_Reply) | |
| 711 | |
| 712 // A renderer sends this to the browser process when a document has been | |
| 713 // detached. The browser will use this to constrain the lifecycle of worker | |
| 714 // processes (SharedWorkers are shut down when their last associated document | |
| 715 // is detached). | |
| 716 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, uint64_t /* document_id */) | |
| 717 | |
| 718 // A renderer sends this to the browser process when it wants to connect to a | |
| 719 // worker. | |
| 720 IPC_MESSAGE_CONTROL2(ViewHostMsg_ConnectToWorker, | |
| 721 int /* route_id */, | |
| 722 int /* sent_message_port_id */) | |
| 723 | |
| 724 // Tells the browser that a specific Appcache manifest in the current page | 668 // Tells the browser that a specific Appcache manifest in the current page |
| 725 // was accessed. | 669 // was accessed. |
| 726 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 670 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
| 727 GURL /* manifest url */, | 671 GURL /* manifest url */, |
| 728 bool /* blocked by policy */) | 672 bool /* blocked by policy */) |
| 729 | 673 |
| 730 // Used to go to the session history entry at the given offset (ie, -1 will | 674 // Used to go to the session history entry at the given offset (ie, -1 will |
| 731 // return the "back" item). | 675 // return the "back" item). |
| 732 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 676 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
| 733 int /* offset (from current) of history item to get */) | 677 int /* offset (from current) of history item to get */) |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 int /* y */) | 859 int /* y */) |
| 916 | 860 |
| 917 #elif defined(OS_MACOSX) | 861 #elif defined(OS_MACOSX) |
| 918 // Receives content of a web page as plain text. | 862 // Receives content of a web page as plain text. |
| 919 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 863 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 920 #endif | 864 #endif |
| 921 | 865 |
| 922 // Adding a new message? Stick to the sort order above: first platform | 866 // Adding a new message? Stick to the sort order above: first platform |
| 923 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 867 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 924 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 868 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |