| 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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 327 |
| 328 void SetFaviconsOutOfDateForPage(const GURL& page_url); | 328 void SetFaviconsOutOfDateForPage(const GURL& page_url); |
| 329 | 329 |
| 330 void SetImportedFavicons( | 330 void SetImportedFavicons( |
| 331 const favicon_base::FaviconUsageDataList& favicon_usage); | 331 const favicon_base::FaviconUsageDataList& favicon_usage); |
| 332 | 332 |
| 333 // Downloads ----------------------------------------------------------------- | 333 // Downloads ----------------------------------------------------------------- |
| 334 | 334 |
| 335 uint32_t GetNextDownloadId(); | 335 uint32_t GetNextDownloadId(); |
| 336 void QueryDownloads(std::vector<DownloadRow>* rows); | 336 void QueryDownloads(std::vector<DownloadRow>* rows); |
| 337 void UpdateDownload(const DownloadRow& data); | 337 void UpdateDownload(const DownloadRow& data, bool should_commit_immediately); |
| 338 bool CreateDownload(const DownloadRow& history_info); | 338 bool CreateDownload(const DownloadRow& history_info); |
| 339 void RemoveDownloads(const std::set<uint32_t>& ids); | 339 void RemoveDownloads(const std::set<uint32_t>& ids); |
| 340 | 340 |
| 341 // Keyword search terms ------------------------------------------------------ | 341 // Keyword search terms ------------------------------------------------------ |
| 342 | 342 |
| 343 void SetKeywordSearchTermsForURL(const GURL& url, | 343 void SetKeywordSearchTermsForURL(const GURL& url, |
| 344 KeywordID keyword_id, | 344 KeywordID keyword_id, |
| 345 const base::string16& term); | 345 const base::string16& term); |
| 346 | 346 |
| 347 void DeleteAllSearchTermsForKeyword(KeywordID keyword_id); | 347 void DeleteAllSearchTermsForKeyword(KeywordID keyword_id); |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 | 889 |
| 890 // List of observers | 890 // List of observers |
| 891 base::ObserverList<HistoryBackendObserver> observers_; | 891 base::ObserverList<HistoryBackendObserver> observers_; |
| 892 | 892 |
| 893 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 893 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 894 }; | 894 }; |
| 895 | 895 |
| 896 } // namespace history | 896 } // namespace history |
| 897 | 897 |
| 898 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 898 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| OLD | NEW |