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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. 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 | Annotate | Revision Log
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_file.h" 5 #include "content/browser/download/drag_download_file.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "content/browser/browser_context.h" 9 #include "content/browser/browser_context.h"
10 #include "content/browser/download/download_item.h" 10 #include "content/browser/download/download_item.h"
11 #include "content/browser/download/download_stats.h" 11 #include "content/browser/download/download_stats.h"
12 #include "content/browser/tab_contents/tab_contents.h" 12 #include "content/browser/tab_contents/tab_contents.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "net/base/file_stream.h" 14 #include "net/base/file_stream.h"
15 15
16 using content::BrowserThread;
17
16 DragDownloadFile::DragDownloadFile( 18 DragDownloadFile::DragDownloadFile(
17 const FilePath& file_name_or_path, 19 const FilePath& file_name_or_path,
18 linked_ptr<net::FileStream> file_stream, 20 linked_ptr<net::FileStream> file_stream,
19 const GURL& url, 21 const GURL& url,
20 const GURL& referrer, 22 const GURL& referrer,
21 const std::string& referrer_encoding, 23 const std::string& referrer_encoding,
22 TabContents* tab_contents) 24 TabContents* tab_contents)
23 : file_stream_(file_stream), 25 : file_stream_(file_stream),
24 url_(url), 26 url_(url),
25 referrer_(referrer), 27 referrer_(referrer),
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 222
221 void DragDownloadFile::QuitNestedMessageLoop() { 223 void DragDownloadFile::QuitNestedMessageLoop() {
222 AssertCurrentlyOnDragThread(); 224 AssertCurrentlyOnDragThread();
223 225
224 if (is_running_nested_message_loop_) { 226 if (is_running_nested_message_loop_) {
225 is_running_nested_message_loop_ = false; 227 is_running_nested_message_loop_ = false;
226 MessageLoop::current()->Quit(); 228 MessageLoop::current()->Quit();
227 } 229 }
228 } 230 }
229 #endif 231 #endif
OLDNEW
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | content/browser/download/drag_download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698