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

Unified Diff: chrome/browser/engagement/site_engagement_eviction_policy.h

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years 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
Index: chrome/browser/engagement/site_engagement_eviction_policy.h
diff --git a/chrome/browser/engagement/site_engagement_eviction_policy.h b/chrome/browser/engagement/site_engagement_eviction_policy.h
deleted file mode 100644
index 42664497be6fcf2731b31f33483284e727a4ab9e..0000000000000000000000000000000000000000
--- a/chrome/browser/engagement/site_engagement_eviction_policy.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_EVICTION_POLICY_H_
-#define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_EVICTION_POLICY_H_
-
-#include <stdint.h>
-
-#include <map>
-#include <memory>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "storage/browser/quota/quota_manager.h"
-#include "url/gurl.h"
-
-namespace content {
-class BrowserContext;
-}
-
-class SiteEngagementScoreProvider;
-
-class SiteEngagementEvictionPolicy : public storage::QuotaEvictionPolicy {
- public:
- static bool IsEnabled();
-
- explicit SiteEngagementEvictionPolicy(
- content::BrowserContext* browser_context);
- ~SiteEngagementEvictionPolicy() override;
-
- // Overridden from storage::QuotaEvictionPolicy:
- void GetEvictionOrigin(const scoped_refptr<storage::SpecialStoragePolicy>&
- special_storage_policy,
- const std::set<GURL>& exceptions,
- const std::map<GURL, int64_t>& usage_map,
- int64_t global_quota,
- const storage::GetOriginCallback& callback) override;
-
- private:
- friend class SiteEngagementEvictionPolicyTest;
-
- static GURL CalculateEvictionOriginForTests(
- const scoped_refptr<storage::SpecialStoragePolicy>&
- special_storage_policy,
- SiteEngagementScoreProvider* score_provider,
- const std::set<GURL>& exceptions,
- const std::map<GURL, int64_t>& usage_map,
- int64_t global_quota);
-
- content::BrowserContext* const browser_context_;
-
- DISALLOW_COPY_AND_ASSIGN(SiteEngagementEvictionPolicy);
-};
-
-#endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_EVICTION_POLICY_H_

Powered by Google App Engine
This is Rietveld 408576698