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

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

Issue 8921021: Trivial move of content::BrowserContext to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "content/browser/browser_context.h"
11 #include "content/browser/download/download_item.h" 10 #include "content/browser/download/download_item.h"
12 #include "content/browser/download/download_stats.h" 11 #include "content/browser/download/download_stats.h"
13 #include "content/browser/download/download_types.h" 12 #include "content/browser/download/download_types.h"
14 #include "content/browser/tab_contents/tab_contents.h" 13 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/public/browser/browser_context.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 #include "net/base/file_stream.h" 16 #include "net/base/file_stream.h"
17 17
18 using content::BrowserThread; 18 using content::BrowserThread;
19 19
20 DragDownloadFile::DragDownloadFile( 20 DragDownloadFile::DragDownloadFile(
21 const FilePath& file_name_or_path, 21 const FilePath& file_name_or_path,
22 linked_ptr<net::FileStream> file_stream, 22 linked_ptr<net::FileStream> file_stream,
23 const GURL& url, 23 const GURL& url,
24 const GURL& referrer, 24 const GURL& referrer,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 void DragDownloadFile::QuitNestedMessageLoop() { 223 void DragDownloadFile::QuitNestedMessageLoop() {
224 AssertCurrentlyOnDragThread(); 224 AssertCurrentlyOnDragThread();
225 225
226 if (is_running_nested_message_loop_) { 226 if (is_running_nested_message_loop_) {
227 is_running_nested_message_loop_ = false; 227 is_running_nested_message_loop_ = false;
228 MessageLoop::current()->Quit(); 228 MessageLoop::current()->Quit();
229 } 229 }
230 } 230 }
231 #endif 231 #endif
OLDNEW
« no previous file with comments | « content/browser/download/download_request_handle.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698