| 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 <set> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 13 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 14 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" | 15 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" |
| 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 17 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
| 17 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_obse
rver.h" | 18 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_obse
rver.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Used by unit tests. | 89 // Used by unit tests. |
| 89 void SetNotificationManagerForTesting( | 90 void SetNotificationManagerForTesting( |
| 90 scoped_ptr<NotificationManagerInterface> notification_manager); | 91 scoped_ptr<NotificationManagerInterface> notification_manager); |
| 91 | 92 |
| 92 // ProvidedFileSystemInterface overrides. | 93 // ProvidedFileSystemInterface overrides. |
| 93 AbortCallback RequestUnmount( | 94 AbortCallback RequestUnmount( |
| 94 const storage::AsyncFileUtil::StatusCallback& callback) override; | 95 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 95 AbortCallback GetMetadata(const base::FilePath& entry_path, | 96 AbortCallback GetMetadata(const base::FilePath& entry_path, |
| 96 MetadataFieldMask fields, | 97 MetadataFieldMask fields, |
| 97 const GetMetadataCallback& callback) override; | 98 const GetMetadataCallback& callback) override; |
| 98 AbortCallback GetActions(const base::FilePath& entry_path, | 99 AbortCallback GetActions(const std::set<base::FilePath>& entry_paths, |
| 99 const GetActionsCallback& callback) override; | 100 const GetActionsCallback& callback) override; |
| 100 AbortCallback ExecuteAction( | 101 AbortCallback ExecuteAction( |
| 101 const base::FilePath& entry_path, | 102 const std::set<base::FilePath>& entry_paths, |
| 102 const std::string& action_id, | 103 const std::string& action_id, |
| 103 const storage::AsyncFileUtil::StatusCallback& callback) override; | 104 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 104 AbortCallback ReadDirectory( | 105 AbortCallback ReadDirectory( |
| 105 const base::FilePath& directory_path, | 106 const base::FilePath& directory_path, |
| 106 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override; | 107 const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override; |
| 107 AbortCallback OpenFile(const base::FilePath& file_path, | 108 AbortCallback OpenFile(const base::FilePath& file_path, |
| 108 OpenFileMode mode, | 109 OpenFileMode mode, |
| 109 const OpenFileCallback& callback) override; | 110 const OpenFileCallback& callback) override; |
| 110 AbortCallback CloseFile( | 111 AbortCallback CloseFile( |
| 111 int file_handle, | 112 int file_handle, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 base::ObserverList<ProvidedFileSystemObserver> observers_; | 250 base::ObserverList<ProvidedFileSystemObserver> observers_; |
| 250 | 251 |
| 251 base::WeakPtrFactory<ProvidedFileSystem> weak_ptr_factory_; | 252 base::WeakPtrFactory<ProvidedFileSystem> weak_ptr_factory_; |
| 252 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); | 253 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); |
| 253 }; | 254 }; |
| 254 | 255 |
| 255 } // namespace file_system_provider | 256 } // namespace file_system_provider |
| 256 } // namespace chromeos | 257 } // namespace chromeos |
| 257 | 258 |
| 258 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ | 259 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ |
| OLD | NEW |