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

Side by Side Diff: chrome/browser/media_galleries/linux/mtp_device_task_helper.cc

Issue 15859007: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dump_file_system build fix Created 7 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "chrome/browser/media_galleries/linux/mtp_device_task_helper.h" 5 #include "chrome/browser/media_galleries/linux/mtp_device_task_helper.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h" 8 #include "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h"
9 #include "chrome/browser/media_galleries/linux/mtp_read_file_worker.h" 9 #include "chrome/browser/media_galleries/linux/mtp_read_file_worker.h"
10 #include "chrome/browser/media_galleries/linux/snapshot_file_details.h" 10 #include "chrome/browser/media_galleries/linux/snapshot_file_details.h"
11 #include "chrome/browser/storage_monitor/storage_monitor.h" 11 #include "chrome/browser/storage_monitor/storage_monitor.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" 13 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
14 #include "third_party/cros_system_api/dbus/service_constants.h" 14 #include "third_party/cros_system_api/dbus/service_constants.h"
15 #include "webkit/fileapi/async_file_util.h" 15 #include "webkit/browser/fileapi/async_file_util.h"
16 #include "webkit/fileapi/file_system_util.h" 16 #include "webkit/fileapi/file_system_util.h"
17 17
18 namespace chrome { 18 namespace chrome {
19 19
20 namespace { 20 namespace {
21 21
22 // Does nothing. 22 // Does nothing.
23 // This method is used to handle the results of 23 // This method is used to handle the results of
24 // MediaTransferProtocolManager::CloseStorage method call. 24 // MediaTransferProtocolManager::CloseStorage method call.
25 void DoNothing(bool error) { 25 void DoNothing(bool error) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void MTPDeviceTaskHelper::HandleDeviceError( 177 void MTPDeviceTaskHelper::HandleDeviceError(
178 const ErrorCallback& error_callback, 178 const ErrorCallback& error_callback,
179 base::PlatformFileError error) const { 179 base::PlatformFileError error) const {
180 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 180 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
181 content::BrowserThread::PostTask(content::BrowserThread::IO, 181 content::BrowserThread::PostTask(content::BrowserThread::IO,
182 FROM_HERE, 182 FROM_HERE,
183 base::Bind(error_callback, error)); 183 base::Bind(error_callback, error));
184 } 184 }
185 185
186 } // namespace chrome 186 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698