OLD | NEW |
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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Must be called at most once on a given PopularSites object. | 59 // Must be called at most once on a given PopularSites object. |
60 virtual bool MaybeStartFetch(bool force_download, | 60 virtual bool MaybeStartFetch(bool force_download, |
61 const FinishedCallback& callback) = 0; | 61 const FinishedCallback& callback) = 0; |
62 | 62 |
63 // Returns the list of available sites. | 63 // Returns the list of available sites. |
64 virtual const SitesVector& sites() const = 0; | 64 virtual const SitesVector& sites() const = 0; |
65 | 65 |
66 // Various internals exposed publicly for diagnostic pages only. | 66 // Various internals exposed publicly for diagnostic pages only. |
67 virtual GURL GetLastURLFetched() const = 0; | 67 virtual GURL GetLastURLFetched() const = 0; |
68 virtual GURL GetURLToFetch() = 0; | 68 virtual GURL GetURLToFetch() = 0; |
| 69 virtual std::string GetDirectoryToFetch() = 0; |
69 virtual std::string GetCountryToFetch() = 0; | 70 virtual std::string GetCountryToFetch() = 0; |
70 virtual std::string GetVersionToFetch() = 0; | 71 virtual std::string GetVersionToFetch() = 0; |
71 virtual const base::ListValue* GetCachedJson() = 0; | 72 virtual const base::ListValue* GetCachedJson() = 0; |
72 }; | 73 }; |
73 | 74 |
74 } // namespace ntp_tiles | 75 } // namespace ntp_tiles |
75 | 76 |
76 #endif // COMPONENTS_NTP_TILES_POPULAR_SITES_H_ | 77 #endif // COMPONENTS_NTP_TILES_POPULAR_SITES_H_ |
OLD | NEW |