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

Unified Diff: extensions/browser/extension_function.h

Issue 1151523009: Forward accessibility events to the automation extension process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step1
Patch Set: Own a message filter rather than inheriting Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/extension_function.h
diff --git a/extensions/browser/extension_function.h b/extensions/browser/extension_function.h
index 3f6f9cecb7e892e6013e010e324536c3f18fc26c..81b50eb4a4881be6778a3ef3e47da92c431c5f49 100644
--- a/extensions/browser/extension_function.h
+++ b/extensions/browser/extension_function.h
@@ -278,6 +278,13 @@ class ExtensionFunction
return source_context_type_;
}
+ void set_source_process_id(int source_process_id) {
+ source_process_id_ = source_process_id;
+ }
+ int source_process_id() {
dcheng 2015/06/06 00:00:52 Nit: const
dmazzoni 2015/06/08 18:02:58 Done.
+ return source_process_id_;
+ }
+
protected:
friend struct ExtensionFunctionDeleteTraits;
@@ -424,6 +431,10 @@ class ExtensionFunction
// The type of the JavaScript context where this call originated.
extensions::Feature::Context source_context_type_;
+ // The process ID of the page that triggered this function call, or -1
+ // if unknown.
+ int source_process_id_;
+
private:
void OnRespondingLater(ResponseValue response);

Powered by Google App Engine
This is Rietveld 408576698