| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 bool* success); | 289 bool* success); |
| 290 void RemoveDownloads(const std::set<uint32>& ids); | 290 void RemoveDownloads(const std::set<uint32>& ids); |
| 291 | 291 |
| 292 // Segment usage ------------------------------------------------------------- | 292 // Segment usage ------------------------------------------------------------- |
| 293 | 293 |
| 294 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, | 294 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, |
| 295 const base::Time from_time, | 295 const base::Time from_time, |
| 296 int max_result_count); | 296 int max_result_count); |
| 297 void DeleteOldSegmentData(); | 297 void DeleteOldSegmentData(); |
| 298 | 298 |
| 299 void IncreaseSegmentDuration(const GURL& url, | |
| 300 base::Time time, | |
| 301 base::TimeDelta delta); | |
| 302 | |
| 303 void QuerySegmentDuration(scoped_refptr<QuerySegmentUsageRequest> request, | |
| 304 const base::Time from_time, | |
| 305 int max_result_count); | |
| 306 | |
| 307 // Keyword search terms ------------------------------------------------------ | 299 // Keyword search terms ------------------------------------------------------ |
| 308 | 300 |
| 309 void SetKeywordSearchTermsForURL(const GURL& url, | 301 void SetKeywordSearchTermsForURL(const GURL& url, |
| 310 TemplateURLID keyword_id, | 302 TemplateURLID keyword_id, |
| 311 const base::string16& term); | 303 const base::string16& term); |
| 312 | 304 |
| 313 void DeleteAllSearchTermsForKeyword(TemplateURLID keyword_id); | 305 void DeleteAllSearchTermsForKeyword(TemplateURLID keyword_id); |
| 314 | 306 |
| 315 void GetMostRecentKeywordSearchTerms( | 307 void GetMostRecentKeywordSearchTerms( |
| 316 scoped_refptr<GetMostRecentKeywordSearchTermsRequest> request, | 308 scoped_refptr<GetMostRecentKeywordSearchTermsRequest> request, |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 | 899 |
| 908 // Listens for the system being under memory pressure. | 900 // Listens for the system being under memory pressure. |
| 909 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 901 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 910 | 902 |
| 911 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 903 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 912 }; | 904 }; |
| 913 | 905 |
| 914 } // namespace history | 906 } // namespace history |
| 915 | 907 |
| 916 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 908 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |