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

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

Issue 988633003: Refactoring: de-couple Extensions from "script injection System" [render side]:4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 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 | « extensions/browser/user_script_loader.cc ('k') | extensions/renderer/dispatcher.h » ('j') | 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 // Notification that renderer should run some JavaScript code. 444 // Notification that renderer should run some JavaScript code.
445 IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode, 445 IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode,
446 ExtensionMsg_ExecuteCode_Params) 446 ExtensionMsg_ExecuteCode_Params)
447 447
448 // Notification that the user scripts have been updated. It has one 448 // Notification that the user scripts have been updated. It has one
449 // SharedMemoryHandle argument consisting of the pickled script data. This 449 // SharedMemoryHandle argument consisting of the pickled script data. This
450 // handle is valid in the context of the renderer. 450 // handle is valid in the context of the renderer.
451 // If |owner| is not empty, then the shared memory handle refers to |owner|'s 451 // If |owner| is not empty, then the shared memory handle refers to |owner|'s
452 // programmatically-defined scripts. Otherwise, the handle refers to all 452 // programmatically-defined scripts. Otherwise, the handle refers to all
453 // extensions' statically defined scripts. 453 // hosts' statically defined scripts. So far, only extension-hosts support
454 // If |changed_extensions| is not empty, only the extensions in that set will 454 // statically defined scripts; WebUI-hosts don't.
455 // be updated. Otherwise, all extensions that have scripts in the shared memory 455 // If |changed_hosts| is not empty, only the host in that set will
456 // region will be updated. Note that the empty set => all extensions case is not 456 // be updated. Otherwise, all hosts that have scripts in the shared memory
457 // region will be updated. Note that the empty set => all hosts case is not
457 // supported for per-extension programmatically-defined script regions; in such 458 // supported for per-extension programmatically-defined script regions; in such
458 // regions, the owner is expected to list itself as the only changed extension. 459 // regions, the owner is expected to list itself as the only changed host.
459 IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts, 460 IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts,
460 base::SharedMemoryHandle, 461 base::SharedMemoryHandle,
461 extensions::ExtensionId /* owner */, 462 HostID /* owner */,
462 std::set<std::string> /* changed extensions */) 463 std::set<HostID> /* changed hosts */)
463 464
464 // Trigger to execute declarative content script under browser control. 465 // Trigger to execute declarative content script under browser control.
465 IPC_MESSAGE_ROUTED4(ExtensionMsg_ExecuteDeclarativeScript, 466 IPC_MESSAGE_ROUTED4(ExtensionMsg_ExecuteDeclarativeScript,
466 int /* tab identifier */, 467 int /* tab identifier */,
467 extensions::ExtensionId /* extension identifier */, 468 extensions::ExtensionId /* extension identifier */,
468 int /* script identifier */, 469 int /* script identifier */,
469 GURL /* page URL where script should be injected */) 470 GURL /* page URL where script should be injected */)
470 471
471 // Tell the render view which browser window it's being attached to. 472 // Tell the render view which browser window it's being attached to.
472 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, 473 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId,
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 int /* acc_obj_id */, 786 int /* acc_obj_id */,
786 base::string16 /* selector */) 787 base::string16 /* selector */)
787 788
788 // Result of a query selector request. 789 // Result of a query selector request.
789 // result_acc_obj_id is the accessibility tree ID of the result element; 0 790 // result_acc_obj_id is the accessibility tree ID of the result element; 0
790 // indicates no result. 791 // indicates no result.
791 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, 792 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result,
792 int /* request_id */, 793 int /* request_id */,
793 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, 794 ExtensionHostMsg_AutomationQuerySelector_Error /* error */,
794 int /* result_acc_obj_id */) 795 int /* result_acc_obj_id */)
OLDNEW
« no previous file with comments | « extensions/browser/user_script_loader.cc ('k') | extensions/renderer/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698