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 extensions. | 5 // IPC messages for extensions. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelSuspend, | 370 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelSuspend, |
371 std::string /* extension_id */) | 371 std::string /* extension_id */) |
372 | 372 |
373 // Send to renderer once the installation mentioned on | 373 // Send to renderer once the installation mentioned on |
374 // ExtensionHostMsg_InlineWebstoreInstall is complete. | 374 // ExtensionHostMsg_InlineWebstoreInstall is complete. |
375 IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse, | 375 IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse, |
376 int32 /* install id */, | 376 int32 /* install id */, |
377 bool /* whether the install was successful */, | 377 bool /* whether the install was successful */, |
378 std::string /* error */) | 378 std::string /* error */) |
379 | 379 |
380 // Response to the renderer for ExtensionHostMsg_GetAppNotifyChannel. | |
381 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, | |
382 std::string /* channel_id */, | |
383 std::string /* error */, | |
384 int32 /* callback_id */) | |
385 | |
386 // Response to the renderer for ExtensionHostMsg_GetAppInstallState. | 380 // Response to the renderer for ExtensionHostMsg_GetAppInstallState. |
387 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse, | 381 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse, |
388 std::string /* state */, | 382 std::string /* state */, |
389 int32 /* callback_id */) | 383 int32 /* callback_id */) |
390 | 384 |
391 // Dispatch the Port.onConnect event for message channels. | 385 // Dispatch the Port.onConnect event for message channels. |
392 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect, | 386 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect, |
393 int /* target_port_id */, | 387 int /* target_port_id */, |
394 std::string /* channel_name */, | 388 std::string /* channel_name */, |
395 std::string /* tab_json */, | 389 std::string /* tab_json */, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication, | 545 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication, |
552 WebApplicationInfo) | 546 WebApplicationInfo) |
553 | 547 |
554 // Sent by the renderer to implement chrome.webstore.install(). | 548 // Sent by the renderer to implement chrome.webstore.install(). |
555 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_InlineWebstoreInstall, | 549 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_InlineWebstoreInstall, |
556 int32 /* install id */, | 550 int32 /* install id */, |
557 int32 /* return route id */, | 551 int32 /* return route id */, |
558 std::string /* Web Store item ID */, | 552 std::string /* Web Store item ID */, |
559 GURL /* requestor URL */) | 553 GURL /* requestor URL */) |
560 | 554 |
561 // Sent by the renderer when an App is requesting permission to send server | |
562 // pushed notifications. | |
563 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_GetAppNotifyChannel, | |
564 GURL /* requestor_url */, | |
565 std::string /* client_id */, | |
566 int32 /* return_route_id */, | |
567 int32 /* callback_id */) | |
568 | |
569 // Sent by the renderer when a web page is checking if its app is installed. | 555 // Sent by the renderer when a web page is checking if its app is installed. |
570 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, | 556 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, |
571 GURL /* requestor_url */, | 557 GURL /* requestor_url */, |
572 int32 /* return_route_id */, | 558 int32 /* return_route_id */, |
573 int32 /* callback_id */) | 559 int32 /* callback_id */) |
574 | 560 |
575 // Optional Ack message sent to the browser to notify that the response to a | 561 // Optional Ack message sent to the browser to notify that the response to a |
576 // function has been processed. | 562 // function has been processed. |
577 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, | 563 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, |
578 int /* request_id */) | 564 int /* request_id */) |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 // Notifies the browser process that a tab has started or stopped matching | 600 // Notifies the browser process that a tab has started or stopped matching |
615 // certain conditions. This message is sent in response to several events: | 601 // certain conditions. This message is sent in response to several events: |
616 // | 602 // |
617 // * ExtensionMsg_WatchPages was received, updating the set of conditions. | 603 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
618 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. | 604 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
619 // Currently this only fires for the main frame. | 605 // Currently this only fires for the main frame. |
620 // * Something changed on an existing frame causing the set of matching searches | 606 // * Something changed on an existing frame causing the set of matching searches |
621 // to change. | 607 // to change. |
622 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 608 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
623 std::vector<std::string> /* Matching CSS selectors */) | 609 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |