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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 // Querying ------------------------------------------------------------------ | 168 // Querying ------------------------------------------------------------------ |
169 | 169 |
170 // ScheduleAutocomplete() never frees |provider| (which is globally live). | 170 // ScheduleAutocomplete() never frees |provider| (which is globally live). |
171 // It passes |params| on to the autocomplete system which will eventually | 171 // It passes |params| on to the autocomplete system which will eventually |
172 // free it. | 172 // free it. |
173 void ScheduleAutocomplete(HistoryURLProvider* provider, | 173 void ScheduleAutocomplete(HistoryURLProvider* provider, |
174 HistoryURLProviderParams* params); | 174 HistoryURLProviderParams* params); |
175 | 175 |
176 void IterateURLs( | 176 void IterateURLs( |
177 const scoped_refptr<VisitedLinkDelegate::URLEnumerator>& enumerator); | 177 const scoped_refptr<components::VisitedLinkDelegate::URLEnumerator>& |
| 178 enumerator); |
178 void QueryURL(scoped_refptr<QueryURLRequest> request, | 179 void QueryURL(scoped_refptr<QueryURLRequest> request, |
179 const GURL& url, | 180 const GURL& url, |
180 bool want_visits); | 181 bool want_visits); |
181 void QueryHistory(scoped_refptr<QueryHistoryRequest> request, | 182 void QueryHistory(scoped_refptr<QueryHistoryRequest> request, |
182 const string16& text_query, | 183 const string16& text_query, |
183 const QueryOptions& options); | 184 const QueryOptions& options); |
184 void QueryRedirectsFrom(scoped_refptr<QueryRedirectsRequest> request, | 185 void QueryRedirectsFrom(scoped_refptr<QueryRedirectsRequest> request, |
185 const GURL& url); | 186 const GURL& url); |
186 void QueryRedirectsTo(scoped_refptr<QueryRedirectsRequest> request, | 187 void QueryRedirectsTo(scoped_refptr<QueryRedirectsRequest> request, |
187 const GURL& url); | 188 const GURL& url); |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 // Used to provide the Android ContentProvider APIs. | 916 // Used to provide the Android ContentProvider APIs. |
916 scoped_ptr<AndroidProviderBackend> android_provider_backend_; | 917 scoped_ptr<AndroidProviderBackend> android_provider_backend_; |
917 #endif | 918 #endif |
918 | 919 |
919 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 920 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
920 }; | 921 }; |
921 | 922 |
922 } // namespace history | 923 } // namespace history |
923 | 924 |
924 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 925 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |