| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "build/build_config.h" |
| 11 #include "content/browser/download/download_stats.h" | 13 #include "content/browser/download/download_stats.h" |
| 12 #include "content/browser/web_contents/web_contents_impl.h" | 14 #include "content/browser/web_contents/web_contents_impl.h" |
| 13 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
| 14 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/download_item.h" | 17 #include "content/public/browser/download_item.h" |
| 16 #include "content/public/browser/download_save_info.h" | 18 #include "content/public/browser/download_save_info.h" |
| 17 #include "content/public/browser/download_url_parameters.h" | 19 #include "content/public/browser/download_url_parameters.h" |
| 18 | 20 |
| 19 namespace content { | 21 namespace content { |
| 20 | 22 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 239 |
| 238 void DragDownloadFile::CheckThread() { | 240 void DragDownloadFile::CheckThread() { |
| 239 #if defined(OS_WIN) | 241 #if defined(OS_WIN) |
| 240 DCHECK(drag_message_loop_ == base::MessageLoop::current()); | 242 DCHECK(drag_message_loop_ == base::MessageLoop::current()); |
| 241 #else | 243 #else |
| 242 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 244 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 243 #endif | 245 #endif |
| 244 } | 246 } |
| 245 | 247 |
| 246 } // namespace content | 248 } // namespace content |
| OLD | NEW |