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

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

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix merge Created 9 years, 3 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
« no previous file with comments | « chrome/browser/history/download_database.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 DownloadCreateCallback; 416 DownloadCreateCallback;
417 417
418 // Begins a history request to create a new persistent entry for a download. 418 // Begins a history request to create a new persistent entry for a download.
419 // 'info' contains all the download's creation state, and 'callback' runs 419 // 'info' contains all the download's creation state, and 'callback' runs
420 // when the history service request is complete. 420 // when the history service request is complete.
421 Handle CreateDownload(int32 id, 421 Handle CreateDownload(int32 id,
422 const DownloadPersistentStoreInfo& info, 422 const DownloadPersistentStoreInfo& info,
423 CancelableRequestConsumerBase* consumer, 423 CancelableRequestConsumerBase* consumer,
424 DownloadCreateCallback* callback); 424 DownloadCreateCallback* callback);
425 425
426 // Implemented by the caller of 'GetNextDownloadId' below.
427 typedef Callback1<int/*next_download_id*/>::Type DownloadNextIdCallback;
428
429 // Runs the callback with the next available download id.
430 Handle GetNextDownloadId(CancelableRequestConsumerBase* consumer,
431 DownloadNextIdCallback* callback);
432
426 // Implemented by the caller of 'QueryDownloads' below, and is called when the 433 // Implemented by the caller of 'QueryDownloads' below, and is called when the
427 // history service has retrieved a list of all download state. The call 434 // history service has retrieved a list of all download state. The call
428 typedef Callback1<std::vector<DownloadPersistentStoreInfo>*>::Type 435 typedef Callback1<std::vector<DownloadPersistentStoreInfo>*>::Type
429 DownloadQueryCallback; 436 DownloadQueryCallback;
430 437
431 // Begins a history request to retrieve the state of all downloads in the 438 // Begins a history request to retrieve the state of all downloads in the
432 // history db. 'callback' runs when the history service request is complete, 439 // history db. 'callback' runs when the history service request is complete,
433 // at which point 'info' contains an array of DownloadPersistentStoreInfo, one 440 // at which point 'info' contains an array of DownloadPersistentStoreInfo, one
434 // per download. 441 // per download.
435 Handle QueryDownloads(CancelableRequestConsumerBase* consumer, 442 Handle QueryDownloads(CancelableRequestConsumerBase* consumer,
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 BookmarkService* bookmark_service_; 874 BookmarkService* bookmark_service_;
868 bool no_db_; 875 bool no_db_;
869 876
870 // True if needs top site migration. 877 // True if needs top site migration.
871 bool needs_top_sites_migration_; 878 bool needs_top_sites_migration_;
872 879
873 DISALLOW_COPY_AND_ASSIGN(HistoryService); 880 DISALLOW_COPY_AND_ASSIGN(HistoryService);
874 }; 881 };
875 882
876 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 883 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/download_database.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698