| OLD | NEW |
| 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/chromeos/drive/file_system_backend_delegate.h" | 5 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/drive/async_file_util.h" | |
| 11 #include "chrome/browser/chromeos/drive/file_system_util.h" | 10 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 12 #include "chrome/browser/chromeos/drive/webkit_file_stream_reader_impl.h" | 11 #include "chrome/browser/chromeos/drive/fileapi/async_file_util.h" |
| 13 #include "chrome/browser/chromeos/drive/webkit_file_stream_writer_impl.h" | 12 #include "chrome/browser/chromeos/drive/fileapi/webkit_file_stream_reader_impl.h
" |
| 13 #include "chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.h
" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
| 16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 17 #include "webkit/browser/blob/file_stream_reader.h" | 17 #include "webkit/browser/blob/file_stream_reader.h" |
| 18 #include "webkit/browser/fileapi/async_file_util.h" | 18 #include "webkit/browser/fileapi/async_file_util.h" |
| 19 #include "webkit/browser/fileapi/file_system_context.h" | 19 #include "webkit/browser/fileapi/file_system_context.h" |
| 20 #include "webkit/browser/fileapi/file_system_url.h" | 20 #include "webkit/browser/fileapi/file_system_url.h" |
| 21 | 21 |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 | 23 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 if (file_path.empty() || util::HasGDocFileExtension(file_path)) | 74 if (file_path.empty() || util::HasGDocFileExtension(file_path)) |
| 75 return scoped_ptr<fileapi::FileStreamWriter>(); | 75 return scoped_ptr<fileapi::FileStreamWriter>(); |
| 76 | 76 |
| 77 return scoped_ptr<fileapi::FileStreamWriter>( | 77 return scoped_ptr<fileapi::FileStreamWriter>( |
| 78 new internal::WebkitFileStreamWriterImpl( | 78 new internal::WebkitFileStreamWriterImpl( |
| 79 base::Bind(&util::GetFileSystemByProfileId, profile_id_), | 79 base::Bind(&util::GetFileSystemByProfileId, profile_id_), |
| 80 context->default_file_task_runner(),file_path, offset)); | 80 context->default_file_task_runner(),file_path, offset)); |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace drive | 83 } // namespace drive |
| OLD | NEW |