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

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

Issue 885493007: Refactoring: de-couple Extensions from "script injection System" [render side] : 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove Host::IsEmpty() and move ExtensionConsumer to extensions/renderer. Created 5 years, 10 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
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // When to inject the code. 128 // When to inject the code.
129 IPC_STRUCT_MEMBER(int, run_at) 129 IPC_STRUCT_MEMBER(int, run_at)
130 130
131 // Whether to execute code in the main world (as opposed to an isolated 131 // Whether to execute code in the main world (as opposed to an isolated
132 // world). 132 // world).
133 IPC_STRUCT_MEMBER(bool, in_main_world) 133 IPC_STRUCT_MEMBER(bool, in_main_world)
134 134
135 // Whether the request is coming from a <webview>. 135 // Whether the request is coming from a <webview>.
136 IPC_STRUCT_MEMBER(bool, is_web_view) 136 IPC_STRUCT_MEMBER(bool, is_web_view)
137 137
138 // The script injection instance id of a <webview> if the request is comming
139 // from a <webview>.
Devlin 2015/02/09 17:40:24 add an "else, the default instance id (0)."
Xi Han 2015/02/09 23:28:11 Done.
140 IPC_STRUCT_MEMBER(int, instance_id)
141
138 // Whether the caller is interested in the result value. Manifest-declared 142 // Whether the caller is interested in the result value. Manifest-declared
139 // content scripts and executeScript() calls without a response callback 143 // content scripts and executeScript() calls without a response callback
140 // are examples of when this will be false. 144 // are examples of when this will be false.
141 IPC_STRUCT_MEMBER(bool, wants_result) 145 IPC_STRUCT_MEMBER(bool, wants_result)
142 146
143 // The URL of the file that was injected, if any. 147 // The URL of the file that was injected, if any.
144 IPC_STRUCT_MEMBER(GURL, file_url) 148 IPC_STRUCT_MEMBER(GURL, file_url)
145 149
146 // Whether the code to be executed should be associated with a user gesture. 150 // Whether the code to be executed should be associated with a user gesture.
147 IPC_STRUCT_MEMBER(bool, user_gesture) 151 IPC_STRUCT_MEMBER(bool, user_gesture)
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 int /* acc_obj_id */, 778 int /* acc_obj_id */,
775 base::string16 /* selector */) 779 base::string16 /* selector */)
776 780
777 // Result of a query selector request. 781 // Result of a query selector request.
778 // result_acc_obj_id is the accessibility tree ID of the result element; 0 782 // result_acc_obj_id is the accessibility tree ID of the result element; 0
779 // indicates no result. 783 // indicates no result.
780 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result, 784 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_AutomationQuerySelector_Result,
781 int /* request_id */, 785 int /* request_id */,
782 ExtensionHostMsg_AutomationQuerySelector_Error /* error */, 786 ExtensionHostMsg_AutomationQuerySelector_Error /* error */,
783 int /* result_acc_obj_id */) 787 int /* result_acc_obj_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698