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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_PROXY_H_
6 #define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_PROXY_H_
7
8 #include <map>
9 #include <vector>
10
11 #include "base/callback.h"
12 #include "base/macros.h"
13 #include "url/gurl.h"
14
15 namespace content {
16 class BrowserContext;
17 }
18
19 class SiteEngagementServiceProxy {
20 public:
21 explicit SiteEngagementServiceProxy(content::BrowserContext* browser_context);
22 ~SiteEngagementServiceProxy();
23
24 void GetScoresForOrigins(
25 const std::vector<GURL>& origins,
26 base::Callback<void(const std::map<GURL, int>&)> callback);
27
28 void GetTotalEngagementPoints(base::Callback<void(int)> callback);
29
30 private:
31 content::BrowserContext* browser_context_;
32
33 DISALLOW_COPY_AND_ASSIGN(SiteEngagementServiceProxy);
34 };
35
36 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698