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

Unified Diff: chrome/browser/component_updater/component_updater_interceptor.h

Issue 7601019: Component updater eight piece (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/component_updater/component_updater_interceptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_updater_interceptor.h
===================================================================
--- chrome/browser/component_updater/component_updater_interceptor.h (revision 95451)
+++ chrome/browser/component_updater/component_updater_interceptor.h (working copy)
@@ -33,8 +33,11 @@
const std::string& headers,
const FilePath& path);
+ // Returns how many requests have been issued that have a stored reply.
+ int hit_count() const { return hit_count_; }
+
private:
- // When computing matches, this ignores the query parameters of the url.
+ // When computing matches, this ignores the query parameters of the url.
virtual net::URLRequestJob* MaybeIntercept(net::URLRequest* request) OVERRIDE;
friend class base::RefCountedThreadSafe<ComponentUpdateInterceptor>;
@@ -48,6 +51,7 @@
typedef std::map<GURL, Response> ResponseMap;
ResponseMap responses_;
+ int hit_count_;
DISALLOW_COPY_AND_ASSIGN(ComponentUpdateInterceptor);
};
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_updater_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698