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

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

Issue 6043: Added dangerous download prompting. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // at which point 'info' contains an array of DownloadCreateInfo, one per 414 // at which point 'info' contains an array of DownloadCreateInfo, one per
415 // download. 415 // download.
416 Handle QueryDownloads(CancelableRequestConsumerBase* consumer, 416 Handle QueryDownloads(CancelableRequestConsumerBase* consumer,
417 DownloadQueryCallback* callback); 417 DownloadQueryCallback* callback);
418 418
419 // Called to update the history service about the current state of a download. 419 // Called to update the history service about the current state of a download.
420 // This is a 'fire and forget' query, so just pass the relevant state info to 420 // This is a 'fire and forget' query, so just pass the relevant state info to
421 // the database with no need for a callback. 421 // the database with no need for a callback.
422 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle); 422 void UpdateDownload(int64 received_bytes, int32 state, int64 db_handle);
423 423
424 // Called to update the history service about the path of a download.
425 // This is a 'fire and forget' query.
426 void UpdateDownloadPath(const std::wstring& path, int64 db_handle);
427
424 // Permanently remove a download from the history system. This is a 'fire and 428 // Permanently remove a download from the history system. This is a 'fire and
425 // forget' operation. 429 // forget' operation.
426 void RemoveDownload(int64 db_handle); 430 void RemoveDownload(int64 db_handle);
427 431
428 // Permanently removes all completed download from the history system within 432 // Permanently removes all completed download from the history system within
429 // the specified range. This function does not delete downloads that are in 433 // the specified range. This function does not delete downloads that are in
430 // progress or in the process of being cancelled. This is a 'fire and forget' 434 // progress or in the process of being cancelled. This is a 'fire and forget'
431 // operation. You can pass is_null times to get unbounded time in either or 435 // operation. You can pass is_null times to get unbounded time in either or
432 // both directions. 436 // both directions.
433 void RemoveDownloadsBetween(Time remove_begin, Time remove_end); 437 void RemoveDownloadsBetween(Time remove_begin, Time remove_end);
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 Profile* profile_; 757 Profile* profile_;
754 758
755 // Has the backend finished loading? The backend is loaded once Init has 759 // Has the backend finished loading? The backend is loaded once Init has
756 // completed. 760 // completed.
757 bool backend_loaded_; 761 bool backend_loaded_;
758 762
759 DISALLOW_EVIL_CONSTRUCTORS(HistoryService); 763 DISALLOW_EVIL_CONSTRUCTORS(HistoryService);
760 }; 764 };
761 765
762 #endif // CHROME_BROWSER_HISTORY_HISTORY_H__ 766 #endif // CHROME_BROWSER_HISTORY_HISTORY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698