| Index: chrome/browser/extensions/active_script_controller.h
|
| diff --git a/chrome/browser/extensions/active_script_controller.h b/chrome/browser/extensions/active_script_controller.h
|
| index b4310950a7d72b6d137c2fa81cf71054517307ce..981f60e905b954a78c70e1ed5d717e295ee4be7e 100644
|
| --- a/chrome/browser/extensions/active_script_controller.h
|
| +++ b/chrome/browser/extensions/active_script_controller.h
|
| @@ -68,6 +68,8 @@ class ActiveScriptController : public content::WebContentsObserver,
|
| // run.
|
| bool WantsToRun(const Extension* extension);
|
|
|
| + int num_page_requests() const { return num_page_requests_; }
|
| +
|
| #if defined(UNIT_TEST)
|
| // Only used in tests.
|
| PermissionsData::AccessType RequiresUserConsentForScriptInjectionForTesting(
|
| @@ -127,6 +129,11 @@ class ActiveScriptController : public content::WebContentsObserver,
|
| const Extension* extension,
|
| UnloadedExtensionInfo::Reason reason) override;
|
|
|
| + // The total number of requests from the renderer on the current page,
|
| + // including any that are pending or were immediately granted.
|
| + // Right now, used only in tests.
|
| + int num_page_requests_;
|
| +
|
| // The associated browser context.
|
| content::BrowserContext* browser_context_;
|
|
|
|
|