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

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

Issue 11744030: Try 2 [Media Gallery] Move chrome/browser/media_transfer_protocol code to src/device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed gyp dependencies. 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_device_delegate_impl_linux.h" 5 #include "chrome/browser/media_gallery/linux/mtp_device_delegate_impl_linux.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "chrome/browser/media_gallery/linux/mtp_device_object_enumerator.h" 12 #include "chrome/browser/media_gallery/linux/mtp_device_object_enumerator.h"
13 #include "chrome/browser/media_gallery/linux/mtp_device_operations_utils.h" 13 #include "chrome/browser/media_gallery/linux/mtp_device_operations_utils.h"
14 #include "chrome/browser/media_gallery/linux/mtp_get_file_info_worker.h" 14 #include "chrome/browser/media_gallery/linux/mtp_get_file_info_worker.h"
15 #include "chrome/browser/media_gallery/linux/mtp_open_storage_worker.h" 15 #include "chrome/browser/media_gallery/linux/mtp_open_storage_worker.h"
16 #include "chrome/browser/media_gallery/linux/mtp_read_directory_worker.h" 16 #include "chrome/browser/media_gallery/linux/mtp_read_directory_worker.h"
17 #include "chrome/browser/media_gallery/linux/mtp_read_file_worker.h" 17 #include "chrome/browser/media_gallery/linux/mtp_read_file_worker.h"
18 #include "chrome/browser/media_gallery/linux/mtp_recursive_device_object_enumera tor.h" 18 #include "chrome/browser/media_gallery/linux/mtp_recursive_device_object_enumera tor.h"
19 #include "chrome/browser/media_transfer_protocol/media_transfer_protocol_manager .h"
20 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
21 21
22 using base::Bind; 22 using base::Bind;
23 using base::PlatformFileError; 23 using base::PlatformFileError;
24 using base::PlatformFileInfo; 24 using base::PlatformFileInfo;
25 using base::SequencedTaskRunner; 25 using base::SequencedTaskRunner;
26 using content::BrowserThread; 26 using content::BrowserThread;
27 using fileapi::FileSystemFileUtil; 27 using fileapi::FileSystemFileUtil;
28 28
29 namespace chrome { 29 namespace chrome {
30 30
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 return !device_handle_.empty(); 187 return !device_handle_.empty();
188 } 188 }
189 189
190 void CreateMTPDeviceDelegate(const std::string& device_location, 190 void CreateMTPDeviceDelegate(const std::string& device_location,
191 base::SequencedTaskRunner* media_task_runner, 191 base::SequencedTaskRunner* media_task_runner,
192 const CreateMTPDeviceDelegateCallback& cb) { 192 const CreateMTPDeviceDelegateCallback& cb) {
193 cb.Run(new MTPDeviceDelegateImplLinux(device_location, media_task_runner)); 193 cb.Run(new MTPDeviceDelegateImplLinux(device_location, media_task_runner));
194 } 194 }
195 195
196 } // namespace chrome 196 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698