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

Side by Side Diff: chrome/browser/media_gallery/linux/mtp_read_directory_worker.cc

Issue 11744014: [Media Gallery] Move chrome/browser/media_transfer_protocol code to src/device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gclient runhooks error Created 7 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698