Chromium Code Reviews| 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); |