Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: extensions/common/extension_messages.h

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/webstore_inline_install/multiple_install_calls.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // If we complete a round of ShouldSuspend->ShouldSuspendAck messages without 400 // If we complete a round of ShouldSuspend->ShouldSuspendAck messages without
401 // the lazy background page becoming active again, we are ready to unload. This 401 // the lazy background page becoming active again, we are ready to unload. This
402 // message tells the page to dispatch the suspend event. 402 // message tells the page to dispatch the suspend event.
403 IPC_MESSAGE_CONTROL1(ExtensionMsg_Suspend, 403 IPC_MESSAGE_CONTROL1(ExtensionMsg_Suspend,
404 std::string /* extension_id */) 404 std::string /* extension_id */)
405 405
406 // The browser changed its mind about suspending this extension. 406 // The browser changed its mind about suspending this extension.
407 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelSuspend, 407 IPC_MESSAGE_CONTROL1(ExtensionMsg_CancelSuspend,
408 std::string /* extension_id */) 408 std::string /* extension_id */)
409 409
410 // Send to renderer once the installation mentioned on
411 // ExtensionHostMsg_InlineWebstoreInstall is complete.
412 IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse,
413 int32 /* install id */,
414 bool /* whether the install was successful */,
415 std::string /* error */)
416
417 // Response to the renderer for ExtensionHostMsg_GetAppInstallState. 410 // Response to the renderer for ExtensionHostMsg_GetAppInstallState.
418 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse, 411 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse,
419 std::string /* state */, 412 std::string /* state */,
420 int32 /* callback_id */) 413 int32 /* callback_id */)
421 414
422 // Dispatch the Port.onConnect event for message channels. 415 // Dispatch the Port.onConnect event for message channels.
423 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect, 416 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect,
424 int /* target_port_id */, 417 int /* target_port_id */,
425 std::string /* channel_name */, 418 std::string /* channel_name */,
426 base::DictionaryValue /* source_tab */, 419 base::DictionaryValue /* source_tab */,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 // Sent from the renderer to the browser to notify that content scripts are 559 // Sent from the renderer to the browser to notify that content scripts are
567 // running in the renderer that the IPC originated from. 560 // running in the renderer that the IPC originated from.
568 // Note that the page_id is for the parent (or more accurately the topmost) 561 // Note that the page_id is for the parent (or more accurately the topmost)
569 // frame (e.g. if executing in an iframe this is the page ID of the parent, 562 // frame (e.g. if executing in an iframe this is the page ID of the parent,
570 // unless the parent is an iframe... etc). 563 // unless the parent is an iframe... etc).
571 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting, 564 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_ContentScriptsExecuting,
572 ExecutingScriptsMap, 565 ExecutingScriptsMap,
573 int32 /* page_id of the _topmost_ frame */, 566 int32 /* page_id of the _topmost_ frame */,
574 GURL /* url of the _topmost_ frame */) 567 GURL /* url of the _topmost_ frame */)
575 568
576 // Sent by the renderer to implement chrome.webstore.install().
577 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_InlineWebstoreInstall,
578 int32 /* install id */,
579 int32 /* return route id */,
580 std::string /* Web Store item ID */,
581 GURL /* requestor URL */)
582
583 // Sent by the renderer when a web page is checking if its app is installed. 569 // Sent by the renderer when a web page is checking if its app is installed.
584 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState, 570 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState,
585 GURL /* requestor_url */, 571 GURL /* requestor_url */,
586 int32 /* return_route_id */, 572 int32 /* return_route_id */,
587 int32 /* callback_id */) 573 int32 /* callback_id */)
588 574
589 // Optional Ack message sent to the browser to notify that the response to a 575 // Optional Ack message sent to the browser to notify that the response to a
590 // function has been processed. 576 // function has been processed.
591 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, 577 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck,
592 int /* request_id */) 578 int /* request_id */)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 // certain conditions. This message is sent in response to several events: 625 // certain conditions. This message is sent in response to several events:
640 // 626 //
641 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 627 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
642 // * A new page is loaded. This will be sent after 628 // * A new page is loaded. This will be sent after
643 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the 629 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the
644 // main frame. 630 // main frame.
645 // * Something changed on an existing frame causing the set of matching searches 631 // * Something changed on an existing frame causing the set of matching searches
646 // to change. 632 // to change.
647 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 633 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
648 std::vector<std::string> /* Matching CSS selectors */) 634 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/webstore_inline_install/multiple_install_calls.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698