| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // The URL that will be loaded in the new window (empty if none has been | 338 // The URL that will be loaded in the new window (empty if none has been |
| 339 // sepcified). | 339 // sepcified). |
| 340 IPC_STRUCT_MEMBER(GURL, target_url) | 340 IPC_STRUCT_MEMBER(GURL, target_url) |
| 341 IPC_STRUCT_END() | 341 IPC_STRUCT_END() |
| 342 | 342 |
| 343 | 343 |
| 344 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) | 344 IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params) |
| 345 // URL for the worker script. | 345 // URL for the worker script. |
| 346 IPC_STRUCT_MEMBER(GURL, url) | 346 IPC_STRUCT_MEMBER(GURL, url) |
| 347 | 347 |
| 348 // True if this is a SharedWorker, false if it is a dedicated Worker. | |
| 349 IPC_STRUCT_MEMBER(bool, is_shared) | |
| 350 | |
| 351 // Name for a SharedWorker, otherwise empty string. | 348 // Name for a SharedWorker, otherwise empty string. |
| 352 IPC_STRUCT_MEMBER(string16, name) | 349 IPC_STRUCT_MEMBER(string16, name) |
| 353 | 350 |
| 354 // The ID of the parent document (unique within parent renderer). | 351 // The ID of the parent document (unique within parent renderer). |
| 355 IPC_STRUCT_MEMBER(unsigned long long, document_id) | 352 IPC_STRUCT_MEMBER(unsigned long long, document_id) |
| 356 | 353 |
| 357 // RenderView routing id used to send messages back to the parent. | 354 // RenderView routing id used to send messages back to the parent. |
| 358 IPC_STRUCT_MEMBER(int, render_view_route_id) | 355 IPC_STRUCT_MEMBER(int, render_view_route_id) |
| 359 | 356 |
| 360 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, | 357 // The route ID to associate with the worker. If MSG_ROUTING_NONE is passed, |
| 361 // a new unique ID is created and assigned to the worker. | 358 // a new unique ID is created and assigned to the worker. |
| 362 IPC_STRUCT_MEMBER(int, route_id) | 359 IPC_STRUCT_MEMBER(int, route_id) |
| 363 | 360 |
| 364 // The ID of the parent's appcache host, only valid for dedicated workers. | |
| 365 IPC_STRUCT_MEMBER(int, parent_appcache_host_id) | |
| 366 | |
| 367 // The ID of the appcache the main shared worker script resource was loaded | 361 // The ID of the appcache the main shared worker script resource was loaded |
| 368 // from, only valid for shared workers. | 362 // from, only valid for shared workers. |
| 369 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) | 363 IPC_STRUCT_MEMBER(int64, script_resource_appcache_id) |
| 370 IPC_STRUCT_END() | 364 IPC_STRUCT_END() |
| 371 | 365 |
| 372 // Parameters structure for ViewHostMsg_FrameNavigate, which has too many data | 366 // Parameters structure for ViewHostMsg_FrameNavigate, which has too many data |
| 373 // parameters to be reasonably put in a predefined IPC message. | 367 // parameters to be reasonably put in a predefined IPC message. |
| 374 IPC_STRUCT_BEGIN(ViewHostMsg_FrameNavigate_Params) | 368 IPC_STRUCT_BEGIN(ViewHostMsg_FrameNavigate_Params) |
| 375 // Page ID of this navigation. The renderer creates a new unique page ID | 369 // Page ID of this navigation. The renderer creates a new unique page ID |
| 376 // anytime a new session history entry is created. This means you'll get new | 370 // anytime a new session history entry is created. This means you'll get new |
| (...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1536 // processes (SharedWorkers are shut down when their last associated document | 1530 // processes (SharedWorkers are shut down when their last associated document |
| 1537 // is detached). | 1531 // is detached). |
| 1538 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, | 1532 IPC_MESSAGE_CONTROL1(ViewHostMsg_DocumentDetached, |
| 1539 uint64 /* document_id */) | 1533 uint64 /* document_id */) |
| 1540 | 1534 |
| 1541 // Wraps an IPC message that's destined to the worker on the renderer->browser | 1535 // Wraps an IPC message that's destined to the worker on the renderer->browser |
| 1542 // hop. | 1536 // hop. |
| 1543 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1537 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
| 1544 IPC::Message /* message */) | 1538 IPC::Message /* message */) |
| 1545 | 1539 |
| 1546 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker | |
| 1547 // message and not received a ViewMsg_WorkerCreated reply, but in the | |
| 1548 // mean time it's destroyed. This tells the browser to not create the queued | |
| 1549 // worker. | |
| 1550 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker, | |
| 1551 int /* route_id */) | |
| 1552 | |
| 1553 // Tells the browser that a specific Appcache manifest in the current page | 1540 // Tells the browser that a specific Appcache manifest in the current page |
| 1554 // was accessed. | 1541 // was accessed. |
| 1555 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 1542 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
| 1556 GURL /* manifest url */, | 1543 GURL /* manifest url */, |
| 1557 bool /* blocked by policy */) | 1544 bool /* blocked by policy */) |
| 1558 | 1545 |
| 1559 // Initiates a download based on user actions like 'ALT+click'. | 1546 // Initiates a download based on user actions like 'ALT+click'. |
| 1560 IPC_MESSAGE_ROUTED3(ViewHostMsg_DownloadUrl, | 1547 IPC_MESSAGE_ROUTED3(ViewHostMsg_DownloadUrl, |
| 1561 GURL /* url */, | 1548 GURL /* url */, |
| 1562 GURL /* referrer */, | 1549 GURL /* referrer */, |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 media::MediaLogEvent /* event */) | 1933 media::MediaLogEvent /* event */) |
| 1947 | 1934 |
| 1948 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1935 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1949 // being sent back. | 1936 // being sent back. |
| 1950 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1937 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1951 | 1938 |
| 1952 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1939 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1953 // whenever the mouse is unlocked (which may or may not be caused by | 1940 // whenever the mouse is unlocked (which may or may not be caused by |
| 1954 // ViewHostMsg_UnlockMouse). | 1941 // ViewHostMsg_UnlockMouse). |
| 1955 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1942 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| OLD | NEW |