Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: content/browser/download/drag_download_util.cc

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/string_util.h"
8 #include "base/file_path.h" 7 #include "base/file_path.h"
9 #include "base/file_util.h" 8 #include "base/file_util.h"
10 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string_number_conversions.h"
11 #include "base/string_util.h"
11 #include "base/task.h" 12 #include "base/task.h"
12 #include "base/string_number_conversions.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "content/browser/browser_thread.h" 14 #include "content/public/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
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
OLDNEW
« no previous file with comments | « content/browser/download/drag_download_file.cc ('k') | content/browser/download/mhtml_generation_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698