| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "net/base/filename_util.h" | 5 #include "net/base/filename_util.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/path_service.h" | |
| 10 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 11 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 13 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
| 14 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
| 15 #include "net/base/filename_util_internal.h" | 14 #include "net/base/filename_util_internal.h" |
| 16 #include "net/base/mime_util.h" | 15 #include "net/base/mime_util.h" |
| 17 #include "net/base/net_string_util.h" | 16 #include "net/base/net_string_util.h" |
| 18 #include "net/http/http_content_disposition.h" | 17 #include "net/http/http_content_disposition.h" |
| 19 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 base::FilePath generated_name( | 318 base::FilePath generated_name( |
| 320 base::SysWideToNativeMB(base::UTF16ToWide(file_name))); | 319 base::SysWideToNativeMB(base::UTF16ToWide(file_name))); |
| 321 #endif | 320 #endif |
| 322 | 321 |
| 323 DCHECK(!generated_name.empty()); | 322 DCHECK(!generated_name.empty()); |
| 324 | 323 |
| 325 return generated_name; | 324 return generated_name; |
| 326 } | 325 } |
| 327 | 326 |
| 328 } // namespace net | 327 } // namespace net |
| OLD | NEW |