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

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: Created 6 years, 6 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 enumerator); 151 enumerator);
152 void QueryURL(const GURL& url, 152 void QueryURL(const GURL& url,
153 bool want_visits, 153 bool want_visits,
154 QueryURLResult* query_url_result); 154 QueryURLResult* query_url_result);
155 void QueryHistory(const base::string16& text_query, 155 void QueryHistory(const base::string16& text_query,
156 const QueryOptions& options, 156 const QueryOptions& options,
157 QueryResults* query_results); 157 QueryResults* query_results);
158 void QueryRedirectsFrom(const GURL& url, QueryRedirectsResult* result); 158 void QueryRedirectsFrom(const GURL& url, QueryRedirectsResult* result);
159 void QueryRedirectsTo(const GURL& url, QueryRedirectsResult* result); 159 void QueryRedirectsTo(const GURL& url, QueryRedirectsResult* result);
160 160
161 void GetVisibleVisitCountToHost( 161 void GetVisibleVisitCountToHost(const GURL& url,
162 scoped_refptr<GetVisibleVisitCountToHostRequest> request, 162 VisibleVisitCountToHostResult* result);
163 const GURL& url);
164 163
165 // TODO(Nik): remove. Use QueryMostVisitedURLs instead. 164 // TODO(Nik): remove. Use QueryMostVisitedURLs instead.
166 void QueryTopURLsAndRedirects( 165 void QueryTopURLsAndRedirects(
167 scoped_refptr<QueryTopURLsAndRedirectsRequest> request, 166 scoped_refptr<QueryTopURLsAndRedirectsRequest> request,
168 int result_count); 167 int result_count);
169 168
170 // Request the |result_count| most visited URLs and the chain of 169 // Request the |result_count| most visited URLs and the chain of
171 // redirects leading to each of these URLs. |days_back| is the 170 // redirects leading to each of these URLs. |days_back| is the
172 // number of days of history to use. Used by TopSites. 171 // number of days of history to use. Used by TopSites.
173 void QueryMostVisitedURLs( 172 void QueryMostVisitedURLs(
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 862
864 // Listens for the system being under memory pressure. 863 // Listens for the system being under memory pressure.
865 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 864 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
866 865
867 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 866 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
868 }; 867 };
869 868
870 } // namespace history 869 } // namespace history
871 870
872 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 871 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698