diff options
author | Ben Murdoch <benm@google.com> | 2014-04-10 11:22:14 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2014-04-10 11:22:14 +0100 |
commit | c5cede9ae108bb15f6b7a8aea21c7e1fefa2834c (patch) | |
tree | e9edd581ad60ab80aa5ab423a2a80df652a75792 /content/browser/download/drag_download_file.h | |
parent | 54cd42278ccf1d52996034848086a09b23065a40 (diff) | |
download | chromium_org-c5cede9ae108bb15f6b7a8aea21c7e1fefa2834c.tar.gz |
Merge from Chromium at DEPS revision 262940
This commit was generated by merge_to_master.py.
Change-Id: I9a3fddbb29857fa8f68a18c6a0115862b65f84d1
Diffstat (limited to 'content/browser/download/drag_download_file.h')
-rw-r--r-- | content/browser/download/drag_download_file.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/content/browser/download/drag_download_file.h b/content/browser/download/drag_download_file.h index c281d977d8..62e4ec2aa2 100644 --- a/content/browser/download/drag_download_file.h +++ b/content/browser/download/drag_download_file.h @@ -6,6 +6,7 @@ #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ #include "base/compiler_specific.h" +#include "base/files/file.h" #include "base/files/file_path.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" @@ -15,14 +16,9 @@ #include "content/public/browser/download_item.h" #include "content/public/browser/download_manager.h" #include "content/public/common/referrer.h" -#include "net/base/file_stream.h" #include "ui/base/dragdrop/download_file_interface.h" #include "url/gurl.h" -namespace net { -class FileStream; -} - namespace content { class DownloadManager; @@ -35,11 +31,11 @@ class WebContents; class CONTENT_EXPORT DragDownloadFile : public ui::DownloadFileProvider { public: // On Windows, we need to download into a temporary file. On posix, we need to - // download into a file stream that has already been created, so only the UI - // thread is involved. |file_stream| must be null on windows but non-null on + // download into a file that has already been created, so only the UI + // thread is involved. |file| must be null on windows but non-null on // posix systems. |file_path| is an absolute path on all systems. DragDownloadFile(const base::FilePath& file_path, - scoped_ptr<net::FileStream> file_stream, + base::File file, const GURL& url, const Referrer& referrer, const std::string& referrer_encoding, @@ -60,7 +56,7 @@ class CONTENT_EXPORT DragDownloadFile : public ui::DownloadFileProvider { void CheckThread(); base::FilePath file_path_; - scoped_ptr<net::FileStream> file_stream_; + base::File file_; base::MessageLoop* drag_message_loop_; State state_; scoped_refptr<ui::DownloadFileObserver> observer_; |