| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/chromeos/fileapi/remote_file_system_operation.h" | 5 #include "webkit/chromeos/fileapi/remote_file_system_operation.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/platform_file.h" |
| 8 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 9 #include "base/platform_file.h" | |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "net/url_request/url_request_context.h" | 12 #include "net/url_request/url_request_context.h" |
| 13 #include "webkit/browser/fileapi/file_writer_delegate.h" |
| 13 #include "webkit/chromeos/fileapi/remote_file_stream_writer.h" | 14 #include "webkit/chromeos/fileapi/remote_file_stream_writer.h" |
| 14 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 15 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 15 #include "webkit/fileapi/file_system_url.h" | 16 #include "webkit/fileapi/file_system_url.h" |
| 16 #include "webkit/fileapi/file_writer_delegate.h" | |
| 17 | 17 |
| 18 using fileapi::FileSystemURL; | 18 using fileapi::FileSystemURL; |
| 19 | 19 |
| 20 namespace chromeos { | 20 namespace chromeos { |
| 21 | 21 |
| 22 RemoteFileSystemOperation::RemoteFileSystemOperation( | 22 RemoteFileSystemOperation::RemoteFileSystemOperation( |
| 23 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy) | 23 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy) |
| 24 : remote_proxy_(remote_proxy), | 24 : remote_proxy_(remote_proxy), |
| 25 pending_operation_(kOperationNone) { | 25 pending_operation_(kOperationNone) { |
| 26 } | 26 } |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 base::PlatformFile file, | 313 base::PlatformFile file, |
| 314 base::ProcessHandle peer_handle) { | 314 base::ProcessHandle peer_handle) { |
| 315 callback.Run( | 315 callback.Run( |
| 316 result, file, | 316 result, file, |
| 317 base::Bind(&fileapi::RemoteFileSystemProxyInterface::NotifyCloseFile, | 317 base::Bind(&fileapi::RemoteFileSystemProxyInterface::NotifyCloseFile, |
| 318 remote_proxy_, url), | 318 remote_proxy_, url), |
| 319 peer_handle); | 319 peer_handle); |
| 320 } | 320 } |
| 321 | 321 |
| 322 } // namespace chromeos | 322 } // namespace chromeos |
| OLD | NEW |