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/browser/chromeos/fileapi/remote_file_system_operation.h" | 5 #include "chrome/browser/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/platform_file.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "chrome/browser/chromeos/fileapi/remote_file_stream_writer.h" |
11 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
12 #include "net/url_request/url_request.h" | 13 #include "net/url_request/url_request.h" |
13 #include "webkit/browser/chromeos/fileapi/remote_file_stream_writer.h" | |
14 #include "webkit/browser/fileapi/file_system_url.h" | 14 #include "webkit/browser/fileapi/file_system_url.h" |
15 #include "webkit/browser/fileapi/file_writer_delegate.h" | 15 #include "webkit/browser/fileapi/file_writer_delegate.h" |
16 | 16 |
17 using fileapi::FileSystemURL; | 17 using fileapi::FileSystemURL; |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 RemoteFileSystemOperation::RemoteFileSystemOperation( | 21 RemoteFileSystemOperation::RemoteFileSystemOperation( |
22 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy) | 22 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy) |
23 : remote_proxy_(remote_proxy), | 23 : remote_proxy_(remote_proxy), |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 base::PlatformFile file, | 236 base::PlatformFile file, |
237 base::ProcessHandle peer_handle) { | 237 base::ProcessHandle peer_handle) { |
238 callback.Run( | 238 callback.Run( |
239 result, file, | 239 result, file, |
240 base::Bind(&fileapi::RemoteFileSystemProxyInterface::NotifyCloseFile, | 240 base::Bind(&fileapi::RemoteFileSystemProxyInterface::NotifyCloseFile, |
241 remote_proxy_, url), | 241 remote_proxy_, url), |
242 peer_handle); | 242 peer_handle); |
243 } | 243 } |
244 | 244 |
245 } // namespace chromeos | 245 } // namespace chromeos |
OLD | NEW |