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/bind.h" | 13 #include "base/bind.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/sequenced_task_runner.h" |
17 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
18 #include "base/string_util.h" | 19 #include "base/string_util.h" |
19 #include "base/strings/string_split.h" | 20 #include "base/strings/string_split.h" |
20 #include "base/task/sequenced_task_runner.h" | |
21 #include "base/task_runner_util.h" | 21 #include "base/task_runner_util.h" |
22 #include "base/threading/sequenced_worker_pool.h" | 22 #include "base/threading/sequenced_worker_pool.h" |
23 #include "base/threading/thread_restrictions.h" | 23 #include "base/threading/thread_restrictions.h" |
24 #include "base/utf_string_conversions.h" | 24 #include "base/utf_string_conversions.h" |
25 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" | 25 #include "chrome/browser/media_galleries/win/mtp_device_object_entry.h" |
26 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h" | 26 #include "chrome/browser/media_galleries/win/mtp_device_object_enumerator.h" |
27 #include "chrome/browser/media_galleries/win/mtp_device_operations_util.h" | 27 #include "chrome/browser/media_galleries/win/mtp_device_operations_util.h" |
28 #include "chrome/browser/media_galleries/win/portable_device_map_service.h" | 28 #include "chrome/browser/media_galleries/win/portable_device_map_service.h" |
29 #include "chrome/browser/media_galleries/win/snapshot_file_details.h" | 29 #include "chrome/browser/media_galleries/win/snapshot_file_details.h" |
30 #include "chrome/browser/storage_monitor/storage_monitor.h" | 30 #include "chrome/browser/storage_monitor/storage_monitor.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 } else { | 613 } else { |
614 current_snapshot_details_->request_info().error_callback.Run( | 614 current_snapshot_details_->request_info().error_callback.Run( |
615 base::PLATFORM_FILE_ERROR_FAILED); | 615 base::PLATFORM_FILE_ERROR_FAILED); |
616 } | 616 } |
617 task_in_progress_ = false; | 617 task_in_progress_ = false; |
618 current_snapshot_details_.reset(); | 618 current_snapshot_details_.reset(); |
619 ProcessNextPendingRequest(); | 619 ProcessNextPendingRequest(); |
620 } | 620 } |
621 | 621 |
622 } // namespace chrome | 622 } // namespace chrome |
OLD | NEW |