OLD | NEW |
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 #include "chrome/browser/media_gallery/linux/mtp_read_directory_worker.h" | 5 #include "chrome/browser/media_gallery/linux/mtp_read_directory_worker.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/sequenced_task_runner.h" | 8 #include "base/sequenced_task_runner.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "chrome/browser/media_transfer_protocol/media_transfer_protocol_manager
.h" | |
11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 11 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" |
12 | 12 |
13 namespace chrome { | 13 namespace chrome { |
14 | 14 |
15 using content::BrowserThread; | 15 using content::BrowserThread; |
16 | 16 |
17 MTPReadDirectoryWorker::MTPReadDirectoryWorker( | 17 MTPReadDirectoryWorker::MTPReadDirectoryWorker( |
18 const std::string& handle, | 18 const std::string& handle, |
19 const std::string& path, | 19 const std::string& path, |
20 base::SequencedTaskRunner* task_runner, | 20 base::SequencedTaskRunner* task_runner, |
21 base::WaitableEvent* task_completed_event, | 21 base::WaitableEvent* task_completed_event, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 89 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
90 if (cancel_tasks_flag_.IsSet()) | 90 if (cancel_tasks_flag_.IsSet()) |
91 return; | 91 return; |
92 | 92 |
93 if (!error) | 93 if (!error) |
94 file_entries_ = file_entries; | 94 file_entries_ = file_entries; |
95 on_task_completed_event_->Signal(); | 95 on_task_completed_event_->Signal(); |
96 } | 96 } |
97 | 97 |
98 } // namespace chrome | 98 } // namespace chrome |
OLD | NEW |