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

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: Handle case where RenderThread destroys AutomationMessageFilter first 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
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | extensions/browser/extension_function.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_function.h
diff --git a/extensions/browser/extension_function.h b/extensions/browser/extension_function.h
index 3f6f9cecb7e892e6013e010e324536c3f18fc26c..23ffedf5ad96607a70270dc92442d125a41d7291 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() const {
+ 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);
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | extensions/browser/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698