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

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

Issue 1221523003: Add a SiteEngagementEvictionPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get_total_engagement_points
Patch Set: refactor Created 5 years, 5 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
Index: chrome/browser/engagement/site_engagement_service_proxy.h
diff --git a/chrome/browser/engagement/site_engagement_service_proxy.h b/chrome/browser/engagement/site_engagement_service_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..7dea2e42faf46caf6a401b582d3981447c99584f
--- /dev/null
+++ b/chrome/browser/engagement/site_engagement_service_proxy.h
@@ -0,0 +1,36 @@
+// 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_SERVICE_PROXY_H_
+#define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_PROXY_H_
+
+#include <map>
+#include <vector>
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "url/gurl.h"
+
+namespace content {
+class BrowserContext;
+}
+
+class SiteEngagementServiceProxy {
+ public:
+ explicit SiteEngagementServiceProxy(content::BrowserContext* browser_context);
+ ~SiteEngagementServiceProxy();
+
+ void GetScoresForOrigins(
+ const std::vector<GURL>& origins,
+ base::Callback<void(const std::map<GURL, int>&)> callback);
+
+ void GetTotalEngagementPoints(base::Callback<void(int)> callback);
+
+ private:
+ content::BrowserContext* browser_context_;
+
+ DISALLOW_COPY_AND_ASSIGN(SiteEngagementServiceProxy);
+};
+
+#endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698