Chromium Code Reviews| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 143 void AddPage(const HistoryAddPageArgs& request); | 143 void AddPage(const HistoryAddPageArgs& request); |
| 144 virtual void SetPageTitle(const GURL& url, const base::string16& title); | 144 virtual void SetPageTitle(const GURL& url, const base::string16& title); |
| 145 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); | 145 void AddPageNoVisitForBookmark(const GURL& url, const base::string16& title); |
| 146 void UpdateWithPageEndTime(ContextID context_id, | 146 void UpdateWithPageEndTime(ContextID context_id, |
| 147 int32 page_id, | 147 int32 page_id, |
| 148 const GURL& url, | 148 const GURL& url, |
| 149 base::Time end_ts); | 149 base::Time end_ts); |
| 150 | 150 |
| 151 // Querying ------------------------------------------------------------------ | 151 // Querying ------------------------------------------------------------------ |
| 152 | 152 |
| 153 // ScheduleAutocomplete() never frees |provider| (which is globally live). | 153 // ScheduleAutocomplete() never frees |provider| (which is globally live). |
|
blundell
2014/07/08 09:10:05
This comment is out of date now: it should describ
nshaik
2014/07/08 18:53:49
Done.
| |
| 154 // It passes |params| on to the autocomplete system which will eventually | 154 // It passes |params| on to the autocomplete system which will eventually |
| 155 // free it. | 155 // free it. |
| 156 void ScheduleAutocomplete(HistoryURLProvider* provider, | 156 void ScheduleAutocomplete(const base::Callback< |
| 157 HistoryURLProviderParams* params); | 157 void(history::HistoryBackend*, history::URLDatabase*)>& callback); |
| 158 | 158 |
| 159 void IterateURLs( | 159 void IterateURLs( |
| 160 const scoped_refptr<visitedlink::VisitedLinkDelegate::URLEnumerator>& | 160 const scoped_refptr<visitedlink::VisitedLinkDelegate::URLEnumerator>& |
| 161 enumerator); | 161 enumerator); |
| 162 QueryURLResult QueryURL(const GURL& url, bool want_visits); | 162 QueryURLResult QueryURL(const GURL& url, bool want_visits); |
| 163 void QueryHistory(scoped_refptr<QueryHistoryRequest> request, | 163 void QueryHistory(scoped_refptr<QueryHistoryRequest> request, |
| 164 const base::string16& text_query, | 164 const base::string16& text_query, |
| 165 const QueryOptions& options); | 165 const QueryOptions& options); |
| 166 void QueryRedirectsFrom(scoped_refptr<QueryRedirectsRequest> request, | 166 void QueryRedirectsFrom(scoped_refptr<QueryRedirectsRequest> request, |
| 167 const GURL& url); | 167 const GURL& url); |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 873 | 873 |
| 874 // Listens for the system being under memory pressure. | 874 // Listens for the system being under memory pressure. |
| 875 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 875 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 876 | 876 |
| 877 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 877 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 878 }; | 878 }; |
| 879 | 879 |
| 880 } // namespace history | 880 } // namespace history |
| 881 | 881 |
| 882 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 882 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |