Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: chrome/browser/history/history_backend.h

Issue 10665049: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // Downloads ----------------------------------------------------------------- 278 // Downloads -----------------------------------------------------------------
279 279
280 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request); 280 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request);
281 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); 281 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request);
282 void CleanUpInProgressEntries(); 282 void CleanUpInProgressEntries();
283 void UpdateDownload(const content::DownloadPersistentStoreInfo& data); 283 void UpdateDownload(const content::DownloadPersistentStoreInfo& data);
284 void UpdateDownloadPath(const FilePath& path, int64 db_handle); 284 void UpdateDownloadPath(const FilePath& path, int64 db_handle);
285 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, 285 void CreateDownload(scoped_refptr<DownloadCreateRequest> request,
286 int32 id, 286 int32 id,
287 const content::DownloadPersistentStoreInfo& info); 287 const content::DownloadPersistentStoreInfo& info);
288 void RemoveDownload(int64 db_handle); 288 void RemoveDownloads(const std::set<int64>& handles);
289 void RemoveDownloadsBetween(const base::Time remove_begin,
290 const base::Time remove_end);
291 void RemoveDownloads(const base::Time remove_end);
292 289
293 // Segment usage ------------------------------------------------------------- 290 // Segment usage -------------------------------------------------------------
294 291
295 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request, 292 void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request,
296 const base::Time from_time, 293 const base::Time from_time,
297 int max_result_count); 294 int max_result_count);
298 void DeleteOldSegmentData(); 295 void DeleteOldSegmentData();
299 void SetSegmentPresentationIndex(SegmentID segment_id, int index); 296 void SetSegmentPresentationIndex(SegmentID segment_id, int index);
300 297
301 // Keyword search terms ------------------------------------------------------ 298 // Keyword search terms ------------------------------------------------------
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 // Used to provide the Android ContentProvider APIs. 752 // Used to provide the Android ContentProvider APIs.
756 scoped_ptr<AndroidProviderBackend> android_provider_backend_; 753 scoped_ptr<AndroidProviderBackend> android_provider_backend_;
757 #endif 754 #endif
758 755
759 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 756 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
760 }; 757 };
761 758
762 } // namespace history 759 } // namespace history
763 760
764 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 761 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698