| 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 "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 #if defined(OS_ANDROID) | 572 #if defined(OS_ANDROID) |
| 573 // Tells the renderer to cancel an opened date/time dialog. | 573 // Tells the renderer to cancel an opened date/time dialog. |
| 574 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) | 574 IPC_MESSAGE_ROUTED0(ViewMsg_CancelDateTimeDialog) |
| 575 | 575 |
| 576 // Replaces a date time input field. | 576 // Replaces a date time input field. |
| 577 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, | 577 IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime, |
| 578 double /* dialog_value */) | 578 double /* dialog_value */) |
| 579 | 579 |
| 580 #endif | 580 #endif |
| 581 | 581 |
| 582 // Get all savable resource links from current webpage, include main | |
| 583 // frame and sub-frame. | |
| 584 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, | |
| 585 GURL /* url of page which is needed to save */) | |
| 586 | |
| 587 // Get html data by serializing all frames of current page with lists | 582 // Get html data by serializing all frames of current page with lists |
| 588 // which contain all resource links that have local copy. | 583 // which contain all resource links that have local copy. |
| 589 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, | 584 IPC_MESSAGE_ROUTED3(ViewMsg_GetSerializedHtmlDataForCurrentPageWithLocalLinks, |
| 590 std::vector<GURL> /* urls that have local copy */, | 585 std::vector<GURL> /* urls that have local copy */, |
| 591 std::vector<base::FilePath> /* paths of local copy */, | 586 std::vector<base::FilePath> /* paths of local copy */, |
| 592 base::FilePath /* local directory path */) | 587 base::FilePath /* local directory path */) |
| 593 | 588 |
| 594 // Tells the render side that a ViewHostMsg_LockMouse message has been | 589 // Tells the render side that a ViewHostMsg_LockMouse message has been |
| 595 // processed. |succeeded| indicates whether the mouse has been successfully | 590 // processed. |succeeded| indicates whether the mouse has been successfully |
| 596 // locked or not. | 591 // locked or not. |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 | 1402 |
| 1408 // Send back a string to be recorded by UserMetrics. | 1403 // Send back a string to be recorded by UserMetrics. |
| 1409 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1404 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
| 1410 std::string /* action */) | 1405 std::string /* action */) |
| 1411 | 1406 |
| 1412 // Notifies the browser that the page was or was not saved as MHTML. | 1407 // Notifies the browser that the page was or was not saved as MHTML. |
| 1413 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, | 1408 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, |
| 1414 int /* job_id */, | 1409 int /* job_id */, |
| 1415 int64 /* size of the MHTML file, -1 if error */) | 1410 int64 /* size of the MHTML file, -1 if error */) |
| 1416 | 1411 |
| 1417 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, | |
| 1418 std::vector<GURL> /* all savable resource links */, | |
| 1419 std::vector<content::Referrer> /* all referrers */, | |
| 1420 std::vector<GURL> /* all frame links */) | |
| 1421 | |
| 1422 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, | 1412 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendSerializedHtmlData, |
| 1423 GURL /* frame's url */, | 1413 GURL /* frame's url */, |
| 1424 std::string /* data buffer */, | 1414 std::string /* data buffer */, |
| 1425 int32 /* complete status */) | 1415 int32 /* complete status */) |
| 1426 | 1416 |
| 1427 // Notifies the browser of an event occurring in the media pipeline. | 1417 // Notifies the browser of an event occurring in the media pipeline. |
| 1428 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, | 1418 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvents, |
| 1429 std::vector<media::MediaLogEvent> /* events */) | 1419 std::vector<media::MediaLogEvent> /* events */) |
| 1430 | 1420 |
| 1431 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1421 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1556 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1546 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 1557 // for details. | 1547 // for details. |
| 1558 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1548 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 1559 LOGFONT /* font_data */, | 1549 LOGFONT /* font_data */, |
| 1560 base::string16 /* characters */) | 1550 base::string16 /* characters */) |
| 1561 #endif | 1551 #endif |
| 1562 | 1552 |
| 1563 // Adding a new message? Stick to the sort order above: first platform | 1553 // Adding a new message? Stick to the sort order above: first platform |
| 1564 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1554 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1565 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1555 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |