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

Side by Side Diff: chrome/browser/history/history_backend.h

Issue 351553004: Port HistoryService::GetVisibleVisitCountToHost to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux ASAN tests Created 6 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 | Annotate | Revision Log
OLDNEW
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // no redirects for the most recent visit of the URL, or the URL is not 162 // no redirects for the most recent visit of the URL, or the URL is not
163 // in history, the array will be empty. 163 // in history, the array will be empty.
164 void QueryRedirectsFrom(const GURL& url, RedirectList* redirects); 164 void QueryRedirectsFrom(const GURL& url, RedirectList* redirects);
165 165
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(const GURL& url,
173 scoped_refptr<GetVisibleVisitCountToHostRequest> request, 173 VisibleVisitCountToHostResult* result);
174 const GURL& url);
175 174
176 // Request the |result_count| most visited URLs and the chain of 175 // Request the |result_count| most visited URLs and the chain of
177 // redirects leading to each of these URLs. |days_back| is the 176 // redirects leading to each of these URLs. |days_back| is the
178 // number of days of history to use. Used by TopSites. 177 // number of days of history to use. Used by TopSites.
179 void QueryMostVisitedURLs(int result_count, 178 void QueryMostVisitedURLs(int result_count,
180 int days_back, 179 int days_back,
181 MostVisitedURLList* result); 180 MostVisitedURLList* result);
182 181
183 // Request the |result_count| URLs and the chain of redirects 182 // Request the |result_count| URLs and the chain of redirects
184 // leading to each of these URLs, filterd and sorted based on the |filter|. 183 // leading to each of these URLs, filterd and sorted based on the |filter|.
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 836
838 // Listens for the system being under memory pressure. 837 // Listens for the system being under memory pressure.
839 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 838 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
840 839
841 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 840 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
842 }; 841 };
843 842
844 } // namespace history 843 } // namespace history
845 844
846 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 845 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_target_determiner.cc ('k') | chrome/browser/history/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698