| 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 25 matching lines...) Expand all Loading... |
| 36 public: | 36 public: |
| 37 ProvidedFileSystem(Profile* profile, | 37 ProvidedFileSystem(Profile* profile, |
| 38 const ProvidedFileSystemInfo& file_system_info); | 38 const ProvidedFileSystemInfo& file_system_info); |
| 39 virtual ~ProvidedFileSystem(); | 39 virtual ~ProvidedFileSystem(); |
| 40 | 40 |
| 41 // ProvidedFileSystemInterface overrides. | 41 // ProvidedFileSystemInterface overrides. |
| 42 virtual AbortCallback RequestUnmount( | 42 virtual AbortCallback RequestUnmount( |
| 43 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 43 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
| 44 virtual AbortCallback GetMetadata( | 44 virtual AbortCallback GetMetadata( |
| 45 const base::FilePath& entry_path, | 45 const base::FilePath& entry_path, |
| 46 MetadataFieldMask fields, |
| 46 const GetMetadataCallback& callback) OVERRIDE; | 47 const GetMetadataCallback& callback) OVERRIDE; |
| 47 virtual AbortCallback ReadDirectory( | 48 virtual AbortCallback ReadDirectory( |
| 48 const base::FilePath& directory_path, | 49 const base::FilePath& directory_path, |
| 49 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; | 50 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) OVERRIDE; |
| 50 virtual AbortCallback OpenFile(const base::FilePath& file_path, | 51 virtual AbortCallback OpenFile(const base::FilePath& file_path, |
| 51 OpenFileMode mode, | 52 OpenFileMode mode, |
| 52 const OpenFileCallback& callback) OVERRIDE; | 53 const OpenFileCallback& callback) OVERRIDE; |
| 53 virtual AbortCallback CloseFile( | 54 virtual AbortCallback CloseFile( |
| 54 int file_handle, | 55 int file_handle, |
| 55 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; | 56 const storage::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 RequestManager request_manager_; | 108 RequestManager request_manager_; |
| 108 | 109 |
| 109 base::WeakPtrFactory<ProvidedFileSystem> weak_ptr_factory_; | 110 base::WeakPtrFactory<ProvidedFileSystem> weak_ptr_factory_; |
| 110 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); | 111 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace file_system_provider | 114 } // namespace file_system_provider |
| 114 } // namespace chromeos | 115 } // namespace chromeos |
| 115 | 116 |
| 116 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 117 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
| OLD | NEW |