diff options
Diffstat (limited to 'chrome/browser/extensions/extensions_quota_service.h')
-rw-r--r-- | chrome/browser/extensions/extensions_quota_service.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_quota_service.h b/chrome/browser/extensions/extensions_quota_service.h index a0329b2a..0f16686 100644 --- a/chrome/browser/extensions/extensions_quota_service.h +++ b/chrome/browser/extensions/extensions_quota_service.h @@ -19,6 +19,7 @@ #include <map> #include <string> +#include "base/compiler_specific.h" #include "base/hash_tables.h" #include "base/memory/scoped_ptr.h" #include "base/time.h" @@ -141,6 +142,20 @@ class QuotaLimitHeuristic { BucketList* buckets) = 0; }; + // Maps all calls to the same bucket, regardless of |args|, for this + // QuotaLimitHeuristic. + class SingletonBucketMapper : public BucketMapper { + public: + SingletonBucketMapper() {} + virtual ~SingletonBucketMapper() {} + virtual void GetBucketsForArgs(const ListValue* args, + BucketList* buckets) OVERRIDE; + + private: + Bucket bucket_; + DISALLOW_COPY_AND_ASSIGN(SingletonBucketMapper); + }; + // Ownership of |mapper| is given to the new QuotaLimitHeuristic. QuotaLimitHeuristic(const Config& config, BucketMapper* map); virtual ~QuotaLimitHeuristic(); |