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

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

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/download/drag_download_file.cc ('k') | chrome/browser/download/save_file.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 | « chrome/browser/download/drag_download_file.cc ('k') | chrome/browser/download/save_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698