OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // MTPDeviceDelegateImplWin implementation. | 5 // MTPDeviceDelegateImplWin implementation. |
6 | 6 |
7 #include "chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h" | 7 #include "chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h" |
8 | 8 |
9 #include <portabledevice.h> | 9 #include <portabledevice.h> |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" |
17 #include "base/sequenced_task_runner_helpers.h" | 17 #include "base/sequenced_task_runner_helpers.h" |
18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
19 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
20 #include "base/threading/thread_restrictions.h" | 20 #include "base/threading/thread_restrictions.h" |
21 #include "base/utf_string_conversions.h" | 21 #include "base/utf_string_conversions.h" |
22 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" | 22 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" |
23 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h" | 23 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h" |
24 #include "chrome/browser/media_galleries/win/mtp_device_operations_util.h" | 24 #include "chrome/browser/media_galleries/win/mtp_device_operations_util.h" |
25 #include "chrome/browser/media_galleries/win/recursive_mtp_device_object_enumera tor.h" | 25 #include "chrome/browser/media_galleries/win/recursive_mtp_device_object_enumera tor.h" |
26 #include "chrome/browser/storage_monitor/removable_device_notifications_window_w in.h" | |
27 #include "chrome/browser/storage_monitor/storage_monitor.h" | 26 #include "chrome/browser/storage_monitor/storage_monitor.h" |
27 #include "chrome/browser/storage_monitor/storage_monitor_win.h" | |
vandebo (ex-Chrome)
2013/03/01 19:47:39
Is this include needed?
| |
28 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
29 | 29 |
30 namespace chrome { | 30 namespace chrome { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // Gets the details of the MTP partition storage specified by the | 34 // Gets the details of the MTP partition storage specified by the |
35 // |storage_path| on the UI thread. If the storage details are valid, creates a | 35 // |storage_path| on the UI thread. If the storage details are valid, creates a |
36 // MTP device delegate on the media task runner. | 36 // MTP device delegate on the media task runner. |
37 void GetStorageInfoAndMaybeCreateDelegate( | 37 void GetStorageInfoAndMaybeCreateDelegate( |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 parent_id, | 233 parent_id, |
234 *path_iter); | 234 *path_iter); |
235 if (file_object_id.empty()) | 235 if (file_object_id.empty()) |
236 break; | 236 break; |
237 parent_id = file_object_id; | 237 parent_id = file_object_id; |
238 } | 238 } |
239 return file_object_id; | 239 return file_object_id; |
240 } | 240 } |
241 | 241 |
242 } // namespace chrome | 242 } // namespace chrome |
OLD | NEW |