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