OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/download_file_manager.h" | 5 #include "chrome/browser/download/download_file_manager.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/browser/browser_thread.h" | 13 #include "chrome/browser/browser_thread.h" |
14 #include "chrome/browser/download/download_manager.h" | 14 #include "chrome/browser/download/download_manager.h" |
15 #include "chrome/browser/download/download_util.h" | 15 #include "chrome/browser/download/download_util.h" |
16 #include "chrome/browser/history/download_create_info.h" | 16 #include "chrome/browser/history/download_create_info.h" |
17 #include "chrome/browser/net/chrome_url_request_context.h" | 17 #include "chrome/browser/net/chrome_url_request_context.h" |
18 #include "chrome/browser/platform_util.h" | 18 #include "chrome/browser/platform_util.h" |
19 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 20 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
21 #include "chrome/browser/tab_contents/tab_util.h" | 21 #include "chrome/browser/tab_contents/tab_util.h" |
22 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
24 #include "net/base/io_buffer.h" | 24 #include "net/base/io_buffer.h" |
25 | 25 |
26 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
27 #include "app/win_util.h" | 27 #include "app/win_util.h" |
28 #include "chrome/common/win_safe_util.h" | 28 #include "chrome/common/win_safe_util.h" |
29 #elif defined(OS_MACOSX) | 29 #elif defined(OS_MACOSX) |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 if (!download_manager) { | 368 if (!download_manager) { |
369 download->CancelDownloadRequest(resource_dispatcher_host_); | 369 download->CancelDownloadRequest(resource_dispatcher_host_); |
370 return; | 370 return; |
371 } | 371 } |
372 | 372 |
373 BrowserThread::PostTask( | 373 BrowserThread::PostTask( |
374 BrowserThread::UI, FROM_HERE, | 374 BrowserThread::UI, FROM_HERE, |
375 NewRunnableMethod(download_manager, | 375 NewRunnableMethod(download_manager, |
376 &DownloadManager::DownloadCancelled, id)); | 376 &DownloadManager::DownloadCancelled, id)); |
377 } | 377 } |
OLD | NEW |