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

Unified Diff: content/browser/download/download_item_impl.h

Issue 8571023: Implemented ExternalData interface on DownloadItem and used it for SafeBrowsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to LKGR. Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_item.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_item_impl.h
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h
index 5c3f3b97dc414798f5e6d4f5ec7ceb49f9da868d..52699ce5d94b79793d1a78368b2e17177e970f0d 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -202,6 +202,8 @@ class CONTENT_EXPORT DownloadItemImpl : public DownloadItem {
virtual void OffThreadCancel(DownloadFileManager* file_manager) OVERRIDE;
virtual std::string DebugString(bool verbose) const OVERRIDE;
virtual void MockDownloadOpenForTesting() OVERRIDE;
+ virtual ExternalData* GetExternalData(const void* key) OVERRIDE;
+ virtual void SetExternalData(const void* key, ExternalData* data) OVERRIDE;
private:
// Construction common to all constructors. |active| should be true for new
@@ -352,6 +354,10 @@ class CONTENT_EXPORT DownloadItemImpl : public DownloadItem {
// Did the delegate delay calling Complete on this download?
bool delegate_delayed_complete_;
+ // External Data storage. All objects in the store
+ // are owned by the DownloadItemImpl.
+ std::map<const void*, ExternalData*> external_data_map_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
};
« no previous file with comments | « content/browser/download/download_item.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698