| 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_FAKE_PROVIDED_FILE_SYSTEM_H
_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H
_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H
_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTEM_H
_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 Watchers* GetWatchers() override; | 147 Watchers* GetWatchers() override; |
| 148 const OpenedFiles& GetOpenedFiles() const override; | 148 const OpenedFiles& GetOpenedFiles() const override; |
| 149 void AddObserver(ProvidedFileSystemObserver* observer) override; | 149 void AddObserver(ProvidedFileSystemObserver* observer) override; |
| 150 void RemoveObserver(ProvidedFileSystemObserver* observer) override; | 150 void RemoveObserver(ProvidedFileSystemObserver* observer) override; |
| 151 void Notify(const base::FilePath& entry_path, | 151 void Notify(const base::FilePath& entry_path, |
| 152 bool recursive, | 152 bool recursive, |
| 153 storage::WatcherManager::ChangeType change_type, | 153 storage::WatcherManager::ChangeType change_type, |
| 154 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, | 154 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, |
| 155 const std::string& tag, | 155 const std::string& tag, |
| 156 const storage::AsyncFileUtil::StatusCallback& callback) override; | 156 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 157 void Configure( |
| 158 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 157 base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; | 159 base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; |
| 158 | 160 |
| 159 // Factory callback, to be used in Service::SetFileSystemFactory(). The | 161 // Factory callback, to be used in Service::SetFileSystemFactory(). The |
| 160 // |event_router| argument can be NULL. | 162 // |event_router| argument can be NULL. |
| 161 static ProvidedFileSystemInterface* Create( | 163 static ProvidedFileSystemInterface* Create( |
| 162 Profile* profile, | 164 Profile* profile, |
| 163 const ProvidedFileSystemInfo& file_system_info); | 165 const ProvidedFileSystemInfo& file_system_info); |
| 164 | 166 |
| 165 private: | 167 private: |
| 166 typedef std::map<base::FilePath, linked_ptr<FakeEntry>> Entries; | 168 typedef std::map<base::FilePath, linked_ptr<FakeEntry>> Entries; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 187 Watchers watchers_; | 189 Watchers watchers_; |
| 188 | 190 |
| 189 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_; | 191 base::WeakPtrFactory<FakeProvidedFileSystem> weak_ptr_factory_; |
| 190 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); | 192 DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); |
| 191 }; | 193 }; |
| 192 | 194 |
| 193 } // namespace file_system_provider | 195 } // namespace file_system_provider |
| 194 } // namespace chromeos | 196 } // namespace chromeos |
| 195 | 197 |
| 196 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE
M_H_ | 198 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FAKE_PROVIDED_FILE_SYSTE
M_H_ |
| OLD | NEW |