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_galleries/linux/mtp_device_delegate_impl_linux.h" | 5 #include "chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "chrome/browser/media_galleries/linux/mtp_device_task_helper.h" | 10 #include "chrome/browser/media_galleries/linux/mtp_device_task_helper.h" |
11 #include "chrome/browser/media_galleries/linux/mtp_device_task_helper_map_servic
e.h" | 11 #include "chrome/browser/media_galleries/linux/mtp_device_task_helper_map_servic
e.h" |
12 #include "chrome/browser/media_galleries/linux/snapshot_file_details.h" | 12 #include "chrome/browser/media_galleries/linux/snapshot_file_details.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 | 14 |
15 namespace chrome { | 15 namespace chrome { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 // File path separator constant. | 19 // File path separator constant. |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 } | 451 } |
452 | 452 |
453 void CreateMTPDeviceAsyncDelegate( | 453 void CreateMTPDeviceAsyncDelegate( |
454 const std::string& device_location, | 454 const std::string& device_location, |
455 const CreateMTPDeviceAsyncDelegateCallback& callback) { | 455 const CreateMTPDeviceAsyncDelegateCallback& callback) { |
456 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); | 456 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
457 callback.Run(new MTPDeviceDelegateImplLinux(device_location)); | 457 callback.Run(new MTPDeviceDelegateImplLinux(device_location)); |
458 } | 458 } |
459 | 459 |
460 } // namespace chrome | 460 } // namespace chrome |
OLD | NEW |