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_util.h" | 5 #include "content/browser/download/drag_download_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/files/file.h" | 12 #include "base/files/file.h" |
11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
16 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
| 19 #include "build/build_config.h" |
17 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
18 #include "url/gurl.h" | 21 #include "url/gurl.h" |
19 | 22 |
20 namespace content { | 23 namespace content { |
21 | 24 |
22 bool ParseDownloadMetadata(const base::string16& metadata, | 25 bool ParseDownloadMetadata(const base::string16& metadata, |
23 base::string16* mime_type, | 26 base::string16* mime_type, |
24 base::FilePath* file_name, | 27 base::FilePath* file_name, |
25 GURL* url) { | 28 GURL* url) { |
26 const base::char16 separator = L':'; | 29 const base::char16 separator = L':'; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 108 } |
106 | 109 |
107 PromiseFileFinalizer::~PromiseFileFinalizer() {} | 110 PromiseFileFinalizer::~PromiseFileFinalizer() {} |
108 | 111 |
109 void PromiseFileFinalizer::Cleanup() { | 112 void PromiseFileFinalizer::Cleanup() { |
110 if (drag_file_downloader_.get()) | 113 if (drag_file_downloader_.get()) |
111 drag_file_downloader_ = NULL; | 114 drag_file_downloader_ = NULL; |
112 } | 115 } |
113 | 116 |
114 } // namespace content | 117 } // namespace content |
OLD | NEW |