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

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

Issue 11363222: Persist download interrupt reason, both target and current paths, and url_chain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 void SetImportedFavicons( 303 void SetImportedFavicons(
304 const std::vector<ImportedFaviconUsage>& favicon_usage); 304 const std::vector<ImportedFaviconUsage>& favicon_usage);
305 305
306 // Downloads ----------------------------------------------------------------- 306 // Downloads -----------------------------------------------------------------
307 307
308 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request); 308 void GetNextDownloadId(scoped_refptr<DownloadNextIdRequest> request);
309 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request); 309 void QueryDownloads(scoped_refptr<DownloadQueryRequest> request);
310 void CleanUpInProgressEntries(); 310 void CleanUpInProgressEntries();
311 void UpdateDownload(const content::DownloadPersistentStoreInfo& data); 311 void UpdateDownload(const content::DownloadPersistentStoreInfo& data);
312 void UpdateDownloadPath(const FilePath& path, int64 db_handle); 312 void UpdateDownloadPath(const FilePath& target_path,
313 const FilePath& current_path,
314 int64 db_handle);
313 void CreateDownload(scoped_refptr<DownloadCreateRequest> request, 315 void CreateDownload(scoped_refptr<DownloadCreateRequest> request,
314 int32 id, 316 int32 id,
315 const content::DownloadPersistentStoreInfo& info); 317 const content::DownloadPersistentStoreInfo& info);
316 void RemoveDownload(int64 db_handle); 318 void RemoveDownload(int64 db_handle);
317 void RemoveDownloadsBetween(const base::Time remove_begin, 319 void RemoveDownloadsBetween(const base::Time remove_begin,
318 const base::Time remove_end); 320 const base::Time remove_end);
319 void RemoveDownloads(const base::Time remove_end); 321 void RemoveDownloads(const base::Time remove_end);
320 322
321 // Segment usage ------------------------------------------------------------- 323 // Segment usage -------------------------------------------------------------
322 324
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 // Used to provide the Android ContentProvider APIs. 890 // Used to provide the Android ContentProvider APIs.
889 scoped_ptr<AndroidProviderBackend> android_provider_backend_; 891 scoped_ptr<AndroidProviderBackend> android_provider_backend_;
890 #endif 892 #endif
891 893
892 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 894 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
893 }; 895 };
894 896
895 } // namespace history 897 } // namespace history
896 898
897 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 899 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698