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

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

Issue 7693004: Added tracking of time spent waiting on extensions to the webRequest API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 9 years, 4 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/extension_webrequest_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_webrequest_api.h
diff --git a/chrome/browser/extensions/extension_webrequest_api.h b/chrome/browser/extensions/extension_webrequest_api.h
index cb58b48db725daeaae4b28dbc89ffe1a549bbbc7..f44d5b72e4bd7d341abffd354c6d2eda7e256573 100644
--- a/chrome/browser/extensions/extension_webrequest_api.h
+++ b/chrome/browser/extensions/extension_webrequest_api.h
@@ -22,6 +22,7 @@
#include "webkit/glue/resource_type.h"
class ExtensionInfoMap;
+class ExtensionWebRequestTimeTracker;
class GURL;
namespace base {
@@ -301,6 +302,7 @@ class ExtensionWebRequestEventRouter {
// method assumes ownership.
void DecrementBlockCount(
void* profile,
+ const std::string& extension_id,
const std::string& event_name,
uint64 request_id,
EventResponse* response);
@@ -349,6 +351,10 @@ class ExtensionWebRequestEventRouter {
// versa).
CrossProfileMap cross_profile_map_;
+ // Keeps track of time spent waiting on extensions using the blocking
+ // webRequest API.
+ scoped_ptr<ExtensionWebRequestTimeTracker> request_time_tracker_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionWebRequestEventRouter);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_webrequest_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698