| 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 "chrome/browser/chromeos/drive/file_system_proxy.h" | 5 #include "chrome/browser/chromeos/drive/file_system_proxy.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/chromeos/drive/drive.pb.h" | 14 #include "chrome/browser/chromeos/drive/drive.pb.h" |
| 15 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 15 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
| 16 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 16 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
| 17 #include "chrome/browser/chromeos/drive/file_system_util.h" | 17 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 18 #include "chrome/browser/chromeos/drive/webkit_file_stream_reader_impl.h" | 18 #include "chrome/browser/chromeos/drive/webkit_file_stream_reader_impl.h" |
| 19 #include "chrome/browser/google_apis/task_util.h" | 19 #include "chrome/browser/google_apis/task_util.h" |
| 20 #include "chrome/browser/google_apis/time_util.h" | 20 #include "chrome/browser/google_apis/time_util.h" |
| 21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 22 #include "webkit/blob/file_stream_reader.h" | 22 #include "webkit/blob/file_stream_reader.h" |
| 23 #include "webkit/blob/shareable_file_reference.h" | 23 #include "webkit/blob/shareable_file_reference.h" |
| 24 #include "webkit/browser/fileapi/file_system_url.h" |
| 24 #include "webkit/fileapi/file_system_types.h" | 25 #include "webkit/fileapi/file_system_types.h" |
| 25 #include "webkit/fileapi/file_system_url.h" | |
| 26 #include "webkit/fileapi/file_system_util.h" | 26 #include "webkit/fileapi/file_system_util.h" |
| 27 | 27 |
| 28 using base::MessageLoopProxy; | 28 using base::MessageLoopProxy; |
| 29 using content::BrowserThread; | 29 using content::BrowserThread; |
| 30 using fileapi::DirectoryEntry; | 30 using fileapi::DirectoryEntry; |
| 31 using fileapi::FileSystemURL; | 31 using fileapi::FileSystemURL; |
| 32 using fileapi::FileSystemOperation; | 32 using fileapi::FileSystemOperation; |
| 33 using webkit_blob::ShareableFileReference; | 33 using webkit_blob::ShareableFileReference; |
| 34 | 34 |
| 35 namespace drive { | 35 namespace drive { |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 base::Bind(&EmitDebugLogForCloseFile, | 865 base::Bind(&EmitDebugLogForCloseFile, |
| 866 virtual_path)))); | 866 virtual_path)))); |
| 867 } | 867 } |
| 868 | 868 |
| 869 FileSystemInterface* FileSystemProxy::GetFileSystemOnUIThread() { | 869 FileSystemInterface* FileSystemProxy::GetFileSystemOnUIThread() { |
| 870 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 870 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 871 return file_system_; | 871 return file_system_; |
| 872 } | 872 } |
| 873 | 873 |
| 874 } // namespace drive | 874 } // namespace drive |
| OLD | NEW |