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

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

Issue 6250014: Move more dnd related files to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2009-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009-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_file.h" 5 #include "chrome/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 "chrome/browser/browser_thread.h" 9 #include "chrome/browser/browser_thread.h"
10 #include "chrome/browser/download/download_file.h" 10 #include "chrome/browser/download/download_file.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 if (!file_path_.empty()) 50 if (!file_path_.empty())
51 file_util::DeleteAfterReboot(file_path_); 51 file_util::DeleteAfterReboot(file_path_);
52 file_util::DeleteAfterReboot(temp_dir_path_); 52 file_util::DeleteAfterReboot(temp_dir_path_);
53 } 53 }
54 #endif 54 #endif
55 55
56 if (download_manager_) 56 if (download_manager_)
57 download_manager_->RemoveObserver(this); 57 download_manager_->RemoveObserver(this);
58 } 58 }
59 59
60 bool DragDownloadFile::Start(DownloadFileObserver* observer) { 60 bool DragDownloadFile::Start(ui::DownloadFileObserver* observer) {
61 AssertCurrentlyOnDragThread(); 61 AssertCurrentlyOnDragThread();
62 62
63 if (is_started_) 63 if (is_started_)
64 return true; 64 return true;
65 is_started_ = true; 65 is_started_ = true;
66 66
67 DCHECK(!observer_.get()); 67 DCHECK(!observer_.get());
68 observer_ = observer; 68 observer_ = observer;
69 69
70 if (!file_stream_.get()) { 70 if (!file_stream_.get()) {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 void DragDownloadFile::QuitNestedMessageLoop() { 211 void DragDownloadFile::QuitNestedMessageLoop() {
212 AssertCurrentlyOnDragThread(); 212 AssertCurrentlyOnDragThread();
213 213
214 if (is_running_nested_message_loop_) { 214 if (is_running_nested_message_loop_) {
215 is_running_nested_message_loop_ = false; 215 is_running_nested_message_loop_ = false;
216 MessageLoop::current()->Quit(); 216 MessageLoop::current()->Quit();
217 } 217 }
218 } 218 }
219 #endif 219 #endif
OLDNEW
« no previous file with comments | « chrome/browser/download/drag_download_file.h ('k') | chrome/browser/download/drag_download_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698