| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/frame_param.h" | 9 #include "content/common/frame_param.h" |
| 10 #include "content/public/common/common_param_traits.h" | 10 #include "content/public/common/common_param_traits.h" |
| 11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 #undef IPC_MESSAGE_EXPORT | 14 #undef IPC_MESSAGE_EXPORT |
| 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 16 | 16 |
| 17 #define IPC_MESSAGE_START FrameMsgStart | 17 #define IPC_MESSAGE_START FrameMsgStart |
| 18 | 18 |
| 19 IPC_STRUCT_BEGIN(FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
| 20 // The frame ID for the failure report. |
| 21 IPC_STRUCT_MEMBER(int64, frame_id) |
| 22 // The WebFrame's uniqueName(). |
| 23 IPC_STRUCT_MEMBER(base::string16, frame_unique_name) |
| 24 // True if this is the top-most frame. |
| 25 IPC_STRUCT_MEMBER(bool, is_main_frame) |
| 26 // Error code as reported in the DidFailProvisionalLoad callback. |
| 27 IPC_STRUCT_MEMBER(int, error_code) |
| 28 // An error message generated from the error_code. This can be an empty |
| 29 // string if we were unable to find a meaningful description. |
| 30 IPC_STRUCT_MEMBER(base::string16, error_description) |
| 31 // The URL that the error is reported for. |
| 32 IPC_STRUCT_MEMBER(GURL, url) |
| 33 // True if the failure is the result of navigating to a POST again |
| 34 // and we're going to show the POST interstitial. |
| 35 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) |
| 36 IPC_STRUCT_END() |
| 37 |
| 19 // ----------------------------------------------------------------------------- | 38 // ----------------------------------------------------------------------------- |
| 20 // Messages sent from the browser to the renderer. | 39 // Messages sent from the browser to the renderer. |
| 21 | 40 |
| 22 // When HW accelerated buffers are swapped in an out-of-process child frame | 41 // When HW accelerated buffers are swapped in an out-of-process child frame |
| 23 // renderer, the message is forwarded to the embedding frame to notify it of | 42 // renderer, the message is forwarded to the embedding frame to notify it of |
| 24 // a new texture available for compositing. When the buffer has finished | 43 // a new texture available for compositing. When the buffer has finished |
| 25 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to | 44 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to |
| 26 // gpu host that produced this buffer. | 45 // gpu host that produced this buffer. |
| 27 // | 46 // |
| 28 // This is used in the non-ubercomp HW accelerated compositing path. | 47 // This is used in the non-ubercomp HW accelerated compositing path. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 int64 /* parent_frame_id */, | 82 int64 /* parent_frame_id */, |
| 64 int64 /* frame_id */) | 83 int64 /* frame_id */) |
| 65 | 84 |
| 66 // Sent when the renderer starts a provisional load for a frame. | 85 // Sent when the renderer starts a provisional load for a frame. |
| 67 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame, | 86 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame, |
| 68 int64 /* frame_id */, | 87 int64 /* frame_id */, |
| 69 int64 /* parent_frame_id */, | 88 int64 /* parent_frame_id */, |
| 70 bool /* true if it is the main frame */, | 89 bool /* true if it is the main frame */, |
| 71 GURL /* url */) | 90 GURL /* url */) |
| 72 | 91 |
| 92 // Sent when the renderer fails a provisional load with an error. |
| 93 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, |
| 94 FrameHostMsg_DidFailProvisionalLoadWithError_Params) |
| 95 |
| 73 // Sent to the browser when the renderer detects it is blocked on a pepper | 96 // Sent to the browser when the renderer detects it is blocked on a pepper |
| 74 // plugin message for too long. This is also sent when it becomes unhung | 97 // plugin message for too long. This is also sent when it becomes unhung |
| 75 // (according to the value of is_hung). The browser can give the user the | 98 // (according to the value of is_hung). The browser can give the user the |
| 76 // option of killing the plugin. | 99 // option of killing the plugin. |
| 77 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, | 100 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, |
| 78 int /* plugin_child_id */, | 101 int /* plugin_child_id */, |
| 79 base::FilePath /* path */, | 102 base::FilePath /* path */, |
| 80 bool /* is_hung */) | 103 bool /* is_hung */) |
| 81 | 104 |
| 82 // Sent by the renderer process to indicate that a plugin instance has crashed. | 105 // Sent by the renderer process to indicate that a plugin instance has crashed. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // See FrameMsg_BuffersSwapped. | 143 // See FrameMsg_BuffersSwapped. |
| 121 IPC_MESSAGE_ROUTED1(FrameHostMsg_BuffersSwappedACK, | 144 IPC_MESSAGE_ROUTED1(FrameHostMsg_BuffersSwappedACK, |
| 122 FrameHostMsg_BuffersSwappedACK_Params /* params */) | 145 FrameHostMsg_BuffersSwappedACK_Params /* params */) |
| 123 | 146 |
| 124 // Acknowledge that we presented an ubercomp frame. | 147 // Acknowledge that we presented an ubercomp frame. |
| 125 // | 148 // |
| 126 // See FrameMsg_CompositorFrameSwapped | 149 // See FrameMsg_CompositorFrameSwapped |
| 127 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, | 150 IPC_MESSAGE_ROUTED1(FrameHostMsg_CompositorFrameSwappedACK, |
| 128 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 151 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
| 129 | 152 |
| OLD | NEW |