| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // ProvidedFileSystemInterface overrides. | 41 // ProvidedFileSystemInterface overrides. |
| 42 virtual void RequestUnmount( | 42 virtual void RequestUnmount( |
| 43 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 43 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
| 44 virtual void GetMetadata(const base::FilePath& entry_path, | 44 virtual void GetMetadata(const base::FilePath& entry_path, |
| 45 const GetMetadataCallback& callback) OVERRIDE; | 45 const GetMetadataCallback& callback) OVERRIDE; |
| 46 virtual void ReadDirectory( | 46 virtual void ReadDirectory( |
| 47 const base::FilePath& directory_path, | 47 const base::FilePath& directory_path, |
| 48 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; | 48 const fileapi::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; |
| 49 virtual void OpenFile(const base::FilePath& file_path, | 49 virtual void OpenFile(const base::FilePath& file_path, |
| 50 OpenFileMode mode, | 50 OpenFileMode mode, |
| 51 bool create, | |
| 52 const OpenFileCallback& callback) OVERRIDE; | 51 const OpenFileCallback& callback) OVERRIDE; |
| 53 virtual void CloseFile( | 52 virtual void CloseFile( |
| 54 int file_handle, | 53 int file_handle, |
| 55 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 54 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
| 56 virtual void ReadFile(int file_handle, | 55 virtual void ReadFile(int file_handle, |
| 57 net::IOBuffer* buffer, | 56 net::IOBuffer* buffer, |
| 58 int64 offset, | 57 int64 offset, |
| 59 int length, | 58 int length, |
| 60 const ReadChunkReceivedCallback& callback) OVERRIDE; | 59 const ReadChunkReceivedCallback& callback) OVERRIDE; |
| 61 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; | 60 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; |
| 62 virtual RequestManager* GetRequestManager() OVERRIDE; | 61 virtual RequestManager* GetRequestManager() OVERRIDE; |
| 63 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE; | 62 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE; |
| 64 | 63 |
| 65 private: | 64 private: |
| 66 Profile* profile_; // Not owned. | 65 Profile* profile_; // Not owned. |
| 67 extensions::EventRouter* event_router_; // Not owned. May be NULL. | 66 extensions::EventRouter* event_router_; // Not owned. May be NULL. |
| 68 ProvidedFileSystemInfo file_system_info_; | 67 ProvidedFileSystemInfo file_system_info_; |
| 69 scoped_ptr<NotificationManagerInterface> notification_manager_; | 68 scoped_ptr<NotificationManagerInterface> notification_manager_; |
| 70 RequestManager request_manager_; | 69 RequestManager request_manager_; |
| 71 | 70 |
| 72 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_; | 71 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_; |
| 73 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); | 72 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 } // namespace file_system_provider | 75 } // namespace file_system_provider |
| 77 } // namespace chromeos | 76 } // namespace chromeos |
| 78 | 77 |
| 79 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 78 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
| OLD | NEW |