| 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);
|
|
|
|
|