| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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" |
| 31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
| 32 #include "webkit/fileapi/file_snapshot_policy.h" | |
| 33 #include "webkit/fileapi/file_system_task_runners.h" | 32 #include "webkit/fileapi/file_system_task_runners.h" |
| 34 #include "webkit/fileapi/file_system_util.h" | 33 #include "webkit/fileapi/file_system_util.h" |
| 35 | 34 |
| 36 namespace chrome { | 35 namespace chrome { |
| 37 | 36 |
| 38 namespace { | 37 namespace { |
| 39 | 38 |
| 40 // Gets the details of the MTP partition storage specified by the | 39 // Gets the details of the MTP partition storage specified by the |
| 41 // |storage_path| on the UI thread. Returns true if the storage details are | 40 // |storage_path| on the UI thread. Returns true if the storage details are |
| 42 // valid and returns false otherwise. | 41 // valid and returns false otherwise. |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 } else { | 613 } else { |
| 615 current_snapshot_details_->request_info().error_callback.Run( | 614 current_snapshot_details_->request_info().error_callback.Run( |
| 616 base::PLATFORM_FILE_ERROR_FAILED); | 615 base::PLATFORM_FILE_ERROR_FAILED); |
| 617 } | 616 } |
| 618 task_in_progress_ = false; | 617 task_in_progress_ = false; |
| 619 current_snapshot_details_.reset(); | 618 current_snapshot_details_.reset(); |
| 620 ProcessNextPendingRequest(); | 619 ProcessNextPendingRequest(); |
| 621 } | 620 } |
| 622 | 621 |
| 623 } // namespace chrome | 622 } // namespace chrome |
| OLD | NEW |