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/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1379 | 1379 |
1380 // Sent when the renderer displays insecure content in a secure page. | 1380 // Sent when the renderer displays insecure content in a secure page. |
1381 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent) | 1381 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDisplayInsecureContent) |
1382 | 1382 |
1383 // Sent when the renderer runs insecure content in a secure origin. | 1383 // Sent when the renderer runs insecure content in a secure origin. |
1384 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidRunInsecureContent, | 1384 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidRunInsecureContent, |
1385 std::string /* security_origin */, | 1385 std::string /* security_origin */, |
1386 GURL /* target URL */) | 1386 GURL /* target URL */) |
1387 | 1387 |
1388 // Sent when the renderer starts a provisional load for a frame. | 1388 // Sent when the renderer starts a provisional load for a frame. |
1389 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidStartProvisionalLoadForFrame, | 1389 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidStartProvisionalLoadForFrame, |
1390 int64 /* frame_id */, | 1390 int64 /* frame_id */, |
1391 bool /* true if it is the main frame */, | 1391 bool /* true if it is the main frame */, |
1392 bool /* true if the frame has an opener set */, | |
1392 GURL /* url */) | 1393 GURL /* url */) |
1393 | 1394 |
1394 // Sent when the renderer fails a provisional load with an error. | 1395 // Sent when the renderer fails a provisional load with an error. |
1395 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidFailProvisionalLoadWithError, | 1396 IPC_MESSAGE_ROUTED5(ViewHostMsg_DidFailProvisionalLoadWithError, |
1396 int64 /* frame_id */, | 1397 int64 /* frame_id */, |
1397 bool /* true if it is the main frame */, | 1398 bool /* true if it is the main frame */, |
1398 int /* error_code */, | 1399 int /* error_code */, |
1399 GURL /* url */, | 1400 GURL /* url */, |
1400 bool /* true if the failure is the result of | 1401 bool /* true if the failure is the result of |
1401 navigating to a POST again and we're going to | 1402 navigating to a POST again and we're going to |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1736 | 1737 |
1737 // Sent when the renderer process is done processing a DataReceived | 1738 // Sent when the renderer process is done processing a DataReceived |
1738 // message. | 1739 // message. |
1739 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, | 1740 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, |
1740 int /* request_id */) | 1741 int /* request_id */) |
1741 | 1742 |
1742 IPC_MESSAGE_CONTROL1(ViewHostMsg_RevealFolderInOS, | 1743 IPC_MESSAGE_CONTROL1(ViewHostMsg_RevealFolderInOS, |
1743 FilePath /* path */) | 1744 FilePath /* path */) |
1744 | 1745 |
1745 // Sent when a provisional load on the main frame redirects. | 1746 // Sent when a provisional load on the main frame redirects. |
1746 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, | 1747 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidRedirectProvisionalLoad, |
1747 int /* page_id */, | 1748 int /* page_id */, |
1749 bool /* true if the frame has an opener set */, | |
cbentzel
2011/05/12 11:17:08
Why do we need to specify an opener here? This wou
Shishir
2011/05/12 22:05:18
Yes that is correct. But suppose that the initial
| |
1748 GURL /* last url */, | 1750 GURL /* last url */, |
1749 GURL /* url redirected to */) | 1751 GURL /* url redirected to */) |
1750 | 1752 |
1751 // Sent when the renderer changes the zoom level for a particular url, so the | 1753 // Sent when the renderer changes the zoom level for a particular url, so the |
1752 // browser can update its records. If remember is true, then url is used to | 1754 // browser can update its records. If remember is true, then url is used to |
1753 // update the zoom level for all pages in that site. Otherwise, the render | 1755 // update the zoom level for all pages in that site. Otherwise, the render |
1754 // view's id is used so that only the menu is updated. | 1756 // view's id is used so that only the menu is updated. |
1755 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, | 1757 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidZoomURL, |
1756 double /* zoom_level */, | 1758 double /* zoom_level */, |
1757 bool /* remember */, | 1759 bool /* remember */, |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1954 | 1956 |
1955 // Stores new inspector setting in the profile. | 1957 // Stores new inspector setting in the profile. |
1956 // TODO(jam): this should be in the chrome module | 1958 // TODO(jam): this should be in the chrome module |
1957 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, | 1959 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting, |
1958 std::string, /* key */ | 1960 std::string, /* key */ |
1959 std::string /* value */) | 1961 std::string /* value */) |
1960 | 1962 |
1961 // Send back a string to be recorded by UserMetrics. | 1963 // Send back a string to be recorded by UserMetrics. |
1962 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1964 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
1963 std::string /* action */) | 1965 std::string /* action */) |
OLD | NEW |