| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell/browser/shell_download_manager_delegate.h" | 5 #include "content/shell/browser/shell_download_manager_delegate.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <commdlg.h> | 9 #include <commdlg.h> |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/file_util.h" | 14 #include "base/files/file_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "content/public/browser/browser_context.h" | 18 #include "content/public/browser/browser_context.h" |
| 19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
| 20 #include "content/public/browser/download_manager.h" | 20 #include "content/public/browser/download_manager.h" |
| 21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
| 22 #include "content/shell/browser/webkit_test_controller.h" | 22 #include "content/shell/browser/webkit_test_controller.h" |
| 23 #include "content/shell/common/shell_switches.h" | 23 #include "content/shell/common/shell_switches.h" |
| 24 #include "net/base/filename_util.h" | 24 #include "net/base/filename_util.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, result); | 193 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, result); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void ShellDownloadManagerDelegate::SetDownloadBehaviorForTesting( | 196 void ShellDownloadManagerDelegate::SetDownloadBehaviorForTesting( |
| 197 const base::FilePath& default_download_path) { | 197 const base::FilePath& default_download_path) { |
| 198 default_download_path_ = default_download_path; | 198 default_download_path_ = default_download_path; |
| 199 suppress_prompting_ = true; | 199 suppress_prompting_ = true; |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace content | 202 } // namespace content |
| OLD | NEW |