| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 // ScheduleAutocomplete() never frees |provider| (which is globally live). | 152 // ScheduleAutocomplete() never frees |provider| (which is globally live). |
| 153 // It passes |params| on to the autocomplete system which will eventually | 153 // It passes |params| on to the autocomplete system which will eventually |
| 154 // free it. | 154 // free it. |
| 155 void ScheduleAutocomplete(HistoryURLProvider* provider, | 155 void ScheduleAutocomplete(HistoryURLProvider* provider, |
| 156 HistoryURLProviderParams* params); | 156 HistoryURLProviderParams* params); |
| 157 | 157 |
| 158 void IterateURLs( | 158 void IterateURLs( |
| 159 const scoped_refptr<visitedlink::VisitedLinkDelegate::URLEnumerator>& | 159 const scoped_refptr<visitedlink::VisitedLinkDelegate::URLEnumerator>& |
| 160 enumerator); | 160 enumerator); |
| 161 void QueryURL(scoped_refptr<QueryURLRequest> request, | 161 void QueryURL(const GURL& url, |
| 162 const GURL& url, | 162 bool want_visits, |
| 163 bool want_visits); | 163 bool* success, |
| 164 URLRow* url_row, |
| 165 VisitVector* visits); |
| 164 void QueryHistory(scoped_refptr<QueryHistoryRequest> request, | 166 void QueryHistory(scoped_refptr<QueryHistoryRequest> request, |
| 165 const base::string16& text_query, | 167 const base::string16& text_query, |
| 166 const QueryOptions& options); | 168 const QueryOptions& options); |
| 167 void QueryRedirectsFrom(scoped_refptr<QueryRedirectsRequest> request, | 169 void QueryRedirectsFrom(scoped_refptr<QueryRedirectsRequest> request, |
| 168 const GURL& url); | 170 const GURL& url); |
| 169 void QueryRedirectsTo(scoped_refptr<QueryRedirectsRequest> request, | 171 void QueryRedirectsTo(scoped_refptr<QueryRedirectsRequest> request, |
| 170 const GURL& url); | 172 const GURL& url); |
| 171 | 173 |
| 172 void GetVisibleVisitCountToHost( | 174 void GetVisibleVisitCountToHost( |
| 173 scoped_refptr<GetVisibleVisitCountToHostRequest> request, | 175 scoped_refptr<GetVisibleVisitCountToHostRequest> request, |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 | 881 |
| 880 // Listens for the system being under memory pressure. | 882 // Listens for the system being under memory pressure. |
| 881 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 883 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 882 | 884 |
| 883 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 885 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 884 }; | 886 }; |
| 885 | 887 |
| 886 } // namespace history | 888 } // namespace history |
| 887 | 889 |
| 888 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 890 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |