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/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 int /* after */) | 335 int /* after */) |
336 | 336 |
337 // Tells the renderer to reload the frame, optionally ignoring the cache while | 337 // Tells the renderer to reload the frame, optionally ignoring the cache while |
338 // doing so. | 338 // doing so. |
339 IPC_MESSAGE_ROUTED1(FrameMsg_Reload, | 339 IPC_MESSAGE_ROUTED1(FrameMsg_Reload, |
340 bool /* ignore_cache */) | 340 bool /* ignore_cache */) |
341 | 341 |
342 // ----------------------------------------------------------------------------- | 342 // ----------------------------------------------------------------------------- |
343 // Messages sent from the renderer to the browser. | 343 // Messages sent from the renderer to the browser. |
344 | 344 |
| 345 // Blink and JavaScript error messages to log to the console |
| 346 // or debugger UI. |
| 347 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
| 348 int32, /* log level */ |
| 349 base::string16, /* msg */ |
| 350 int32, /* line number */ |
| 351 base::string16 /* source id */ ) |
| 352 |
345 // Sent by the renderer when a child frame is created in the renderer. | 353 // Sent by the renderer when a child frame is created in the renderer. |
346 // | 354 // |
347 // Each of these messages will have a corresponding FrameHostMsg_Detach message | 355 // Each of these messages will have a corresponding FrameHostMsg_Detach message |
348 // sent when the frame is detached from the DOM. | 356 // sent when the frame is detached from the DOM. |
349 IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_CreateChildFrame, | 357 IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_CreateChildFrame, |
350 int32 /* parent_routing_id */, | 358 int32 /* parent_routing_id */, |
351 std::string /* frame_name */, | 359 std::string /* frame_name */, |
352 int32 /* new_routing_id */) | 360 int32 /* new_routing_id */) |
353 | 361 |
354 // Sent by the renderer to the parent RenderFrameHost when a child frame is | 362 // Sent by the renderer to the parent RenderFrameHost when a child frame is |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 float /* scale_factor */) | 513 float /* scale_factor */) |
506 | 514 |
507 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was | 515 // Response for FrameMsg_JavaScriptExecuteRequest, sent when a reply was |
508 // requested. The ID is the parameter supplied to | 516 // requested. The ID is the parameter supplied to |
509 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the | 517 // FrameMsg_JavaScriptExecuteRequest. The result has the value returned by the |
510 // script as its only element, one of Null, Boolean, Integer, Real, Date, or | 518 // script as its only element, one of Null, Boolean, Integer, Real, Date, or |
511 // String. | 519 // String. |
512 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse, | 520 IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse, |
513 int /* id */, | 521 int /* id */, |
514 base::ListValue /* result */) | 522 base::ListValue /* result */) |
OLD | NEW |