| 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 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1432 GURL /* URL of requestor */, | 1432 GURL /* URL of requestor */, |
| 1433 std::string /* signed public key and challenge */) | 1433 std::string /* signed public key and challenge */) |
| 1434 | 1434 |
| 1435 // Message sent from the renderer to the browser to request that the browser | 1435 // Message sent from the renderer to the browser to request that the browser |
| 1436 // cache |data| associated with |url| and |expected_response_time|. | 1436 // cache |data| associated with |url| and |expected_response_time|. |
| 1437 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, | 1437 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, |
| 1438 GURL /* url */, | 1438 GURL /* url */, |
| 1439 base::Time /* expected_response_time */, | 1439 base::Time /* expected_response_time */, |
| 1440 std::vector<char> /* data */) | 1440 std::vector<char> /* data */) |
| 1441 | 1441 |
| 1442 // Register a new handler for URL requests with the given scheme. | |
| 1443 IPC_MESSAGE_ROUTED4(ViewHostMsg_RegisterProtocolHandler, | |
| 1444 std::string /* scheme */, | |
| 1445 GURL /* url */, | |
| 1446 base::string16 /* title */, | |
| 1447 bool /* user_gesture */) | |
| 1448 | |
| 1449 // Unregister the registered handler for URL requests with the given scheme. | |
| 1450 IPC_MESSAGE_ROUTED3(ViewHostMsg_UnregisterProtocolHandler, | |
| 1451 std::string /* scheme */, | |
| 1452 GURL /* url */, | |
| 1453 bool /* user_gesture */) | |
| 1454 | |
| 1455 // Send back a string to be recorded by UserMetrics. | 1442 // Send back a string to be recorded by UserMetrics. |
| 1456 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1443 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
| 1457 std::string /* action */) | 1444 std::string /* action */) |
| 1458 | 1445 |
| 1459 // Notifies the browser that the page was or was not saved as MHTML. | 1446 // Notifies the browser that the page was or was not saved as MHTML. |
| 1460 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, | 1447 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, |
| 1461 int /* job_id */, | 1448 int /* job_id */, |
| 1462 int64 /* size of the MHTML file, -1 if error */) | 1449 int64 /* size of the MHTML file, -1 if error */) |
| 1463 | 1450 |
| 1464 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, | 1451 IPC_MESSAGE_ROUTED3(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1602 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 1616 // for details. | 1603 // for details. |
| 1617 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1604 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 1618 LOGFONT /* font_data */, | 1605 LOGFONT /* font_data */, |
| 1619 base::string16 /* characters */) | 1606 base::string16 /* characters */) |
| 1620 #endif | 1607 #endif |
| 1621 | 1608 |
| 1622 // Adding a new message? Stick to the sort order above: first platform | 1609 // Adding a new message? Stick to the sort order above: first platform |
| 1623 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1610 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1624 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1611 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |