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 |
index eebba7b6cff03cc8caa6d39be0b063663980de3c..d174d3b687c8241d0b84c10a98cd9949af471fb7 100644 |
--- a/chrome/browser/android/preferences/important_sites_util.h |
+++ b/chrome/browser/android/preferences/important_sites_util.h |
@@ -9,6 +9,7 @@ |
#include <vector> |
#include "base/macros.h" |
+#include "url/gurl.h" |
class Profile; |
@@ -17,12 +18,20 @@ class ImportantSitesUtil { |
// 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. |
+ // If |optional_example_origins| is specified we populate that list with |
+ // example origins for each domain. This can be used to retrieve favicons. |
// 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); |
+ size_t max_results, |
+ std::vector<GURL>* optional_example_origins); |
+ |
+ // This marks the given origin as important so we can test features that rely |
+ // on important sites. |
+ static void MarkOriginAsImportantForTesting(Profile* profile, |
+ const GURL& origin); |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(ImportantSitesUtil); |