OLD | NEW |
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 #include "chrome/browser/download/drag_download_file.h" | 5 #include "chrome/browser/download/drag_download_file.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "chrome/browser/download/download_file.h" | |
10 #include "chrome/browser/download/download_item.h" | |
11 #include "chrome/browser/download/download_util.h" | 9 #include "chrome/browser/download/download_util.h" |
12 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
13 #include "content/browser/browser_thread.h" | 11 #include "content/browser/browser_thread.h" |
| 12 #include "content/browser/download/download_item.h" |
14 #include "content/browser/tab_contents/tab_contents.h" | 13 #include "content/browser/tab_contents/tab_contents.h" |
15 #include "net/base/file_stream.h" | 14 #include "net/base/file_stream.h" |
16 | 15 |
17 DragDownloadFile::DragDownloadFile( | 16 DragDownloadFile::DragDownloadFile( |
18 const FilePath& file_name_or_path, | 17 const FilePath& file_name_or_path, |
19 linked_ptr<net::FileStream> file_stream, | 18 linked_ptr<net::FileStream> file_stream, |
20 const GURL& url, | 19 const GURL& url, |
21 const GURL& referrer, | 20 const GURL& referrer, |
22 const std::string& referrer_encoding, | 21 const std::string& referrer_encoding, |
23 TabContents* tab_contents) | 22 TabContents* tab_contents) |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 220 |
222 void DragDownloadFile::QuitNestedMessageLoop() { | 221 void DragDownloadFile::QuitNestedMessageLoop() { |
223 AssertCurrentlyOnDragThread(); | 222 AssertCurrentlyOnDragThread(); |
224 | 223 |
225 if (is_running_nested_message_loop_) { | 224 if (is_running_nested_message_loop_) { |
226 is_running_nested_message_loop_ = false; | 225 is_running_nested_message_loop_ = false; |
227 MessageLoop::current()->Quit(); | 226 MessageLoop::current()->Quit(); |
228 } | 227 } |
229 } | 228 } |
230 #endif | 229 #endif |
OLD | NEW |