| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <Windows.h> | 5 #include <Windows.h> |
| 6 #include <objbase.h> | 6 #include <objbase.h> |
| 7 | 7 |
| 8 #include "chrome/browser/download_file.h" | 8 #include "chrome/browser/download/download_file.h" |
| 9 | 9 |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/task.h" | 14 #include "base/task.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/download_manager.h" | 16 #include "chrome/browser/download/download_manager.h" |
| 17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
| 18 #include "chrome/browser/resource_dispatcher_host.h" | 18 #include "chrome/browser/resource_dispatcher_host.h" |
| 19 #include "chrome/browser/tab_contents.h" | 19 #include "chrome/browser/tab_contents.h" |
| 20 #include "chrome/browser/tab_util.h" | 20 #include "chrome/browser/tab_util.h" |
| 21 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
| 22 #include "chrome/common/stl_util-inl.h" | 22 #include "chrome/common/stl_util-inl.h" |
| 23 #include "chrome/common/win_util.h" | 23 #include "chrome/common/win_util.h" |
| 24 #include "chrome/common/win_safe_util.h" | 24 #include "chrome/common/win_safe_util.h" |
| 25 #include "googleurl/src/gurl.h" | 25 #include "googleurl/src/gurl.h" |
| 26 #include "net/base/net_util.h" | 26 #include "net/base/net_util.h" |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 | 571 |
| 572 if (downloads_.empty()) | 572 if (downloads_.empty()) |
| 573 ui_loop_->PostTask(FROM_HERE, NewRunnableMethod( | 573 ui_loop_->PostTask(FROM_HERE, NewRunnableMethod( |
| 574 this, &DownloadFileManager::StopUpdateTimer)); | 574 this, &DownloadFileManager::StopUpdateTimer)); |
| 575 } | 575 } |
| 576 | 576 |
| 577 void DownloadFileManager::CreateDirectory(const std::wstring& directory) { | 577 void DownloadFileManager::CreateDirectory(const std::wstring& directory) { |
| 578 if (!file_util::PathExists(directory)) | 578 if (!file_util::PathExists(directory)) |
| 579 file_util::CreateDirectory(directory); | 579 file_util::CreateDirectory(directory); |
| 580 } | 580 } |
| OLD | NEW |