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

Unified Diff: webkit/quota/usage_tracker.h

Issue 7634013: Minor cleanup to UsageTracker.IsWorking(). (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 | « webkit/quota/quota_types.h ('k') | webkit/quota/usage_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/usage_tracker.h
===================================================================
--- webkit/quota/usage_tracker.h (revision 96475)
+++ webkit/quota/usage_tracker.h (working copy)
@@ -42,9 +42,11 @@
void UpdateUsageCache(QuotaClient::ID client_id,
const GURL& origin,
int64 delta);
-
void GetCachedOrigins(std::set<GURL>* origins) const;
- bool IsWorking();
+ bool IsWorking() const {
+ return global_usage_callbacks_.HasCallbacks() ||
+ host_usage_callbacks_.HasAnyCallbacks();
+ }
private:
struct TrackingInfo {
« no previous file with comments | « webkit/quota/quota_types.h ('k') | webkit/quota/usage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698