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/drag_download_util.h" | 5 #include "chrome/browser/download/drag_download_util.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/browser_thread.h" | 14 #include "content/browser/browser_thread.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/file_stream.h" | 16 #include "net/base/file_stream.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 | 18 |
19 using net::FileStream; | 19 using net::FileStream; |
20 | 20 |
21 namespace drag_download_util { | 21 namespace drag_download_util { |
22 | 22 |
23 bool ParseDownloadMetadata(const string16& metadata, | 23 bool ParseDownloadMetadata(const string16& metadata, |
24 string16* mime_type, | 24 string16* mime_type, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 NewRunnableMethod(this, &PromiseFileFinalizer::Cleanup)); | 104 NewRunnableMethod(this, &PromiseFileFinalizer::Cleanup)); |
105 } | 105 } |
106 | 106 |
107 void PromiseFileFinalizer::OnDownloadAborted() { | 107 void PromiseFileFinalizer::OnDownloadAborted() { |
108 BrowserThread::PostTask( | 108 BrowserThread::PostTask( |
109 BrowserThread::UI, FROM_HERE, | 109 BrowserThread::UI, FROM_HERE, |
110 NewRunnableMethod(this, &PromiseFileFinalizer::Cleanup)); | 110 NewRunnableMethod(this, &PromiseFileFinalizer::Cleanup)); |
111 } | 111 } |
112 | 112 |
113 } // namespace drag_download_util | 113 } // namespace drag_download_util |
OLD | NEW |