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

Unified Diff: chrome/browser/android/preferences/important_sites_util.h

Issue 1757163002: [ImportantSites] JNI bindings for CBD filtering and Important Sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/android/preferences/important_sites_util.h
diff --git a/chrome/browser/android/preferences/important_sites_util.h b/chrome/browser/android/preferences/important_sites_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..eebba7b6cff03cc8caa6d39be0b063663980de3c
--- /dev/null
+++ b/chrome/browser/android/preferences/important_sites_util.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_
+#define CHROME_BROWSER_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_
+
+#include <string>
+#include <vector>
+
+#include "base/macros.h"
+
+class Profile;
+
+class ImportantSitesUtil {
+ public:
+ // This returns the top |<=max_results| important registerable
+ // domains. This uses site engagement and notifications to generate the list.
+ // |max_results| is assumed to be small.
+ // See net/base/registry_controlled_domains/registry_controlled_domain.h for
+ // more details on registrable domains and the current list of effective
+ // eTLDs.
+ static std::vector<std::string> GetImportantRegisterableDomains(
+ Profile* profile,
+ size_t max_results);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ImportantSitesUtil);
+};
+
+#endif // CHROME_BROWSER_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698