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

Side by Side Diff: components/ntp_tiles/popular_sites.h

Issue 2557103004: Add chrome://site-tiles-internals/ (Closed)
Patch Set: Fix gn check Created 4 years 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_NTP_TILES_POPULAR_SITES_H_ 5 #ifndef COMPONENTS_NTP_TILES_POPULAR_SITES_H_
6 #define COMPONENTS_NTP_TILES_POPULAR_SITES_H_ 6 #define COMPONENTS_NTP_TILES_POPULAR_SITES_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 ~PopularSites() override; 88 ~PopularSites() override;
89 89
90 const std::vector<Site>& sites() const { return sites_; } 90 const std::vector<Site>& sites() const { return sites_; }
91 91
92 // The URL of the file that was last downloaded. 92 // The URL of the file that was last downloaded.
93 GURL LastURL() const; 93 GURL LastURL() const;
94 94
95 const base::FilePath& local_path() const { return local_path_; } 95 const base::FilePath& local_path() const { return local_path_; }
96 96
97 // Public for diagnostic pages only.
98 GURL GetURLToUse();
99 std::string GetCountryToUse();
100 std::string GetVersionToUse();
Marc Treib 2016/12/08 15:41:49 const?
101
97 // Register preferences used by this class. 102 // Register preferences used by this class.
98 static void RegisterProfilePrefs( 103 static void RegisterProfilePrefs(
99 user_prefs::PrefRegistrySyncable* user_prefs); 104 user_prefs::PrefRegistrySyncable* user_prefs);
100 105
101 private: 106 private:
102 void OnReadFileDone(std::unique_ptr<std::string> data, bool success); 107 void OnReadFileDone(std::unique_ptr<std::string> data, bool success);
103 108
104 // Fetch the popular sites at the given URL, overwriting any file that already 109 // Fetch the popular sites at the given URL, overwriting any file that already
105 // exists. 110 // exists.
106 void FetchPopularSites(); 111 void FetchPopularSites();
(...skipping 25 matching lines...) Expand all
132 GURL pending_url_; 137 GURL pending_url_;
133 138
134 base::WeakPtrFactory<PopularSites> weak_ptr_factory_; 139 base::WeakPtrFactory<PopularSites> weak_ptr_factory_;
135 140
136 DISALLOW_COPY_AND_ASSIGN(PopularSites); 141 DISALLOW_COPY_AND_ASSIGN(PopularSites);
137 }; 142 };
138 143
139 } // namespace ntp_tiles 144 } // namespace ntp_tiles
140 145
141 #endif // COMPONENTS_NTP_TILES_POPULAR_SITES_H_ 146 #endif // COMPONENTS_NTP_TILES_POPULAR_SITES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698