Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Side by Side Diff: chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc

Issue 15658004: Split FileAPI code for common|common_child|renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 12 matching lines...) Expand all
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/browser/fileapi/file_system_task_runners.h" 32 #include "webkit/browser/fileapi/file_system_task_runners.h"
33 #include "webkit/fileapi/file_system_util.h" 33 #include "webkit/common/fileapi/file_system_util.h"
34 34
35 namespace chrome { 35 namespace chrome {
36 36
37 namespace { 37 namespace {
38 38
39 // Gets the details of the MTP partition storage specified by the 39 // Gets the details of the MTP partition storage specified by the
40 // |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
41 // valid and returns false otherwise. 41 // valid and returns false otherwise.
42 bool GetStorageInfoOnUIThread(const string16& storage_path, 42 bool GetStorageInfoOnUIThread(const string16& storage_path,
43 string16* pnp_device_id, 43 string16* pnp_device_id,
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698