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

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

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class DragDownloadFileUI; 56 class DragDownloadFileUI;
57 enum State {INITIALIZED, STARTED, SUCCESS, FAILURE}; 57 enum State {INITIALIZED, STARTED, SUCCESS, FAILURE};
58 58
59 virtual ~DragDownloadFile(); 59 virtual ~DragDownloadFile();
60 60
61 void DownloadCompleted(bool is_successful); 61 void DownloadCompleted(bool is_successful);
62 void CheckThread(); 62 void CheckThread();
63 63
64 base::FilePath file_path_; 64 base::FilePath file_path_;
65 scoped_ptr<net::FileStream> file_stream_; 65 scoped_ptr<net::FileStream> file_stream_;
66 MessageLoop* drag_message_loop_; 66 base::MessageLoop* drag_message_loop_;
67 State state_; 67 State state_;
68 scoped_refptr<ui::DownloadFileObserver> observer_; 68 scoped_refptr<ui::DownloadFileObserver> observer_;
69 base::RunLoop nested_loop_; 69 base::RunLoop nested_loop_;
70 DragDownloadFileUI* drag_ui_; 70 DragDownloadFileUI* drag_ui_;
71 base::WeakPtrFactory<DragDownloadFile> weak_ptr_factory_; 71 base::WeakPtrFactory<DragDownloadFile> weak_ptr_factory_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile); 73 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile);
74 }; 74 };
75 75
76 } // namespace content 76 } // namespace content
77 77
78 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 78 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/download/drag_download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698