| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_HISTORY_HISTORY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // Similar to above function except computes a chain of redirects to the | 166 // Similar to above function except computes a chain of redirects to the |
| 167 // given URL. Stores the most recent list of redirects ending at |url| in the | 167 // given URL. Stores the most recent list of redirects ending at |url| in the |
| 168 // given RedirectList. For example, if we have the redirect list A -> B -> C, | 168 // given RedirectList. For example, if we have the redirect list A -> B -> C, |
| 169 // then calling this function with url=C would fill redirects with {B, A}. | 169 // then calling this function with url=C would fill redirects with {B, A}. |
| 170 void QueryRedirectsTo(const GURL& url, RedirectList* redirects); | 170 void QueryRedirectsTo(const GURL& url, RedirectList* redirects); |
| 171 | 171 |
| 172 void GetVisibleVisitCountToHost( | 172 void GetVisibleVisitCountToHost( |
| 173 scoped_refptr<GetVisibleVisitCountToHostRequest> request, | 173 scoped_refptr<GetVisibleVisitCountToHostRequest> request, |
| 174 const GURL& url); | 174 const GURL& url); |
| 175 | 175 |
| 176 // TODO(Nik): remove. Use QueryMostVisitedURLs instead. | |
| 177 void QueryTopURLsAndRedirects( | |
| 178 scoped_refptr<QueryTopURLsAndRedirectsRequest> request, | |
| 179 int result_count); | |
| 180 | |
| 181 // Request the |result_count| most visited URLs and the chain of | 176 // Request the |result_count| most visited URLs and the chain of |
| 182 // redirects leading to each of these URLs. |days_back| is the | 177 // redirects leading to each of these URLs. |days_back| is the |
| 183 // number of days of history to use. Used by TopSites. | 178 // number of days of history to use. Used by TopSites. |
| 184 void QueryMostVisitedURLs( | 179 void QueryMostVisitedURLs( |
| 185 scoped_refptr<QueryMostVisitedURLsRequest> request, | 180 scoped_refptr<QueryMostVisitedURLsRequest> request, |
| 186 int result_count, | 181 int result_count, |
| 187 int days_back); | 182 int days_back); |
| 188 | 183 |
| 189 // Request the |result_count| URLs and the chain of redirects | 184 // Request the |result_count| URLs and the chain of redirects |
| 190 // leading to each of these URLs, filterd and sorted based on the |filter|. | 185 // leading to each of these URLs, filterd and sorted based on the |filter|. |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 | 856 |
| 862 // Listens for the system being under memory pressure. | 857 // Listens for the system being under memory pressure. |
| 863 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 858 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 864 | 859 |
| 865 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 860 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 866 }; | 861 }; |
| 867 | 862 |
| 868 } // namespace history | 863 } // namespace history |
| 869 | 864 |
| 870 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 865 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |