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

Side by Side Diff: chrome/browser/android/preferences/important_sites_util.h

Issue 2110463004: [ImportantStorage] Blacklisted reason metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed domain empty check Created 4 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
« no previous file with comments | « no previous file | chrome/browser/android/preferences/important_sites_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_
6 #define CHROME_BROWSER_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_ 6 #define CHROME_BROWSER_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 // If |optional_example_origins| is specified we populate that list with 21 // If |optional_example_origins| is specified we populate that list with
22 // example origins for each domain. This can be used to retrieve favicons. 22 // example origins for each domain. This can be used to retrieve favicons.
23 // See net/base/registry_controlled_domains/registry_controlled_domain.h for 23 // See net/base/registry_controlled_domains/registry_controlled_domain.h for
24 // more details on registrable domains and the current list of effective 24 // more details on registrable domains and the current list of effective
25 // eTLDs. 25 // eTLDs.
26 static std::vector<std::string> GetImportantRegisterableDomains( 26 static std::vector<std::string> GetImportantRegisterableDomains(
27 Profile* profile, 27 Profile* profile,
28 size_t max_results, 28 size_t max_results,
29 std::vector<GURL>* optional_example_origins); 29 std::vector<GURL>* optional_example_origins);
30 30
31 static void RecordMetricsForBlacklistedSites(
32 Profile* profile,
33 std::vector<std::string> blacklisted_sites);
34
31 // This marks the given origin as important so we can test features that rely 35 // This marks the given origin as important so we can test features that rely
32 // on important sites. 36 // on important sites.
33 static void MarkOriginAsImportantForTesting(Profile* profile, 37 static void MarkOriginAsImportantForTesting(Profile* profile,
34 const GURL& origin); 38 const GURL& origin);
35 39
36 private: 40 private:
37 DISALLOW_IMPLICIT_CONSTRUCTORS(ImportantSitesUtil); 41 DISALLOW_IMPLICIT_CONSTRUCTORS(ImportantSitesUtil);
38 }; 42 };
39 43
40 #endif // CHROME_BROWSER_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_ 44 #endif // CHROME_BROWSER_ANDROID_PREFERENCES_IMPORTANT_SITES_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/preferences/important_sites_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698