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

Unified Diff: chrome/browser/extensions/active_script_controller.h

Issue 939803002: [Extensions] Update renderers when all-urls is granted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Created 5 years, 10 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 | « no previous file | chrome/browser/extensions/active_script_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/extensions/active_script_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698