| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 virtual void RemoveWatcher( | 139 virtual void RemoveWatcher( |
| 140 const GURL& origin, | 140 const GURL& origin, |
| 141 const base::FilePath& entry_path, | 141 const base::FilePath& entry_path, |
| 142 bool recursive, | 142 bool recursive, |
| 143 const storage::AsyncFileUtil::StatusCallback& callback) override; | 143 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 144 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const override; | 144 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const override; |
| 145 virtual RequestManager* GetRequestManager() override; | 145 virtual RequestManager* GetRequestManager() override; |
| 146 virtual Watchers* GetWatchers() override; | 146 virtual Watchers* GetWatchers() override; |
| 147 virtual void AddObserver(ProvidedFileSystemObserver* observer) override; | 147 virtual void AddObserver(ProvidedFileSystemObserver* observer) override; |
| 148 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) override; | 148 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) override; |
| 149 virtual bool Notify(const base::FilePath& entry_path, | 149 virtual void Notify( |
| 150 bool recursive, | 150 const base::FilePath& entry_path, |
| 151 storage::WatcherManager::ChangeType change_type, | 151 bool recursive, |
| 152 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, | 152 storage::WatcherManager::ChangeType change_type, |
| 153 const std::string& tag) override; | 153 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, |
| 154 const std::string& tag, |
| 155 const storage::AsyncFileUtil::StatusCallback& callback) override; |
| 154 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; | 156 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override; |
| 155 | 157 |
| 156 // Factory callback, to be used in Service::SetFileSystemFactory(). The | 158 // Factory callback, to be used in Service::SetFileSystemFactory(). The |
| 157 // |event_router| argument can be NULL. | 159 // |event_router| argument can be NULL. |
| 158 static ProvidedFileSystemInterface* Create( | 160 static ProvidedFileSystemInterface* Create( |
| 159 Profile* profile, | 161 Profile* profile, |
| 160 const ProvidedFileSystemInfo& file_system_info); | 162 const ProvidedFileSystemInfo& file_system_info); |
| 161 | 163 |
| 162 private: | 164 private: |
| 163 typedef std::map<base::FilePath, linked_ptr<FakeEntry> > Entries; | 165 typedef std::map<base::FilePath, linked_ptr<FakeEntry> > Entries; |
| (...skipping 23 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 |