| 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 <errno.h> |
| 7 #include <fcntl.h> | 8 #include <fcntl.h> |
| 8 #include <algorithm> | 9 #include <algorithm> |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 11 #include "base/bind.h" | 12 #include "base/bind.h" |
| 12 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 13 #include "base/numerics/safe_conversions.h" | 14 #include "base/numerics/safe_conversions.h" |
| 14 #include "base/posix/eintr_wrapper.h" | 15 #include "base/posix/eintr_wrapper.h" |
| 15 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
| (...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1905 } | 1906 } |
| 1906 } | 1907 } |
| 1907 | 1908 |
| 1908 void CreateMTPDeviceAsyncDelegate( | 1909 void CreateMTPDeviceAsyncDelegate( |
| 1909 const std::string& device_location, | 1910 const std::string& device_location, |
| 1910 const bool read_only, | 1911 const bool read_only, |
| 1911 const CreateMTPDeviceAsyncDelegateCallback& callback) { | 1912 const CreateMTPDeviceAsyncDelegateCallback& callback) { |
| 1912 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); | 1913 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
| 1913 callback.Run(new MTPDeviceDelegateImplLinux(device_location, read_only)); | 1914 callback.Run(new MTPDeviceDelegateImplLinux(device_location, read_only)); |
| 1914 } | 1915 } |
| OLD | NEW |