| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_THROTTLED_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ | 
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ | 
| 7 | 7 | 
| 8 #include <set> |  | 
| 9 #include <string> | 8 #include <string> | 
|  | 9 #include <vector> | 
| 10 | 10 | 
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" | 
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" | 
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" | 
| 14 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" | 14 #include "chrome/browser/chromeos/file_system_provider/abort_callback.h" | 
| 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system.h" | 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system.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_info
     .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_inte
     rface.h" | 
| 18 #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" | 
| 19 #include "storage/browser/fileapi/async_file_util.h" | 19 #include "storage/browser/fileapi/async_file_util.h" | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
| 42   explicit ThrottledFileSystem( | 42   explicit ThrottledFileSystem( | 
| 43       scoped_ptr<ProvidedFileSystemInterface> file_system); | 43       scoped_ptr<ProvidedFileSystemInterface> file_system); | 
| 44   ~ThrottledFileSystem() override; | 44   ~ThrottledFileSystem() override; | 
| 45 | 45 | 
| 46   // ProvidedFileSystemInterface overrides. | 46   // ProvidedFileSystemInterface overrides. | 
| 47   AbortCallback RequestUnmount( | 47   AbortCallback RequestUnmount( | 
| 48       const storage::AsyncFileUtil::StatusCallback& callback) override; | 48       const storage::AsyncFileUtil::StatusCallback& callback) override; | 
| 49   AbortCallback GetMetadata(const base::FilePath& entry_path, | 49   AbortCallback GetMetadata(const base::FilePath& entry_path, | 
| 50                             MetadataFieldMask fields, | 50                             MetadataFieldMask fields, | 
| 51                             const GetMetadataCallback& callback) override; | 51                             const GetMetadataCallback& callback) override; | 
| 52   AbortCallback GetActions(const base::FilePath& entry_path, | 52   AbortCallback GetActions(const std::vector<base::FilePath>& entry_paths, | 
| 53                            const GetActionsCallback& callback) override; | 53                            const GetActionsCallback& callback) override; | 
| 54   AbortCallback ExecuteAction( | 54   AbortCallback ExecuteAction( | 
| 55       const base::FilePath& entry_path, | 55       const std::vector<base::FilePath>& entry_paths, | 
| 56       const std::string& action_id, | 56       const std::string& action_id, | 
| 57       const storage::AsyncFileUtil::StatusCallback& callback) override; | 57       const storage::AsyncFileUtil::StatusCallback& callback) override; | 
| 58   AbortCallback ReadDirectory( | 58   AbortCallback ReadDirectory( | 
| 59       const base::FilePath& directory_path, | 59       const base::FilePath& directory_path, | 
| 60       const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override; | 60       const storage::AsyncFileUtil::ReadDirectoryCallback& callback) override; | 
| 61   AbortCallback OpenFile(const base::FilePath& file_path, | 61   AbortCallback OpenFile(const base::FilePath& file_path, | 
| 62                          OpenFileMode mode, | 62                          OpenFileMode mode, | 
| 63                          const OpenFileCallback& callback) override; | 63                          const OpenFileCallback& callback) override; | 
| 64   AbortCallback CloseFile( | 64   AbortCallback CloseFile( | 
| 65       int file_handle, | 65       int file_handle, | 
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 150   std::map<int, int> opened_files_; | 150   std::map<int, int> opened_files_; | 
| 151 | 151 | 
| 152   base::WeakPtrFactory<ThrottledFileSystem> weak_ptr_factory_; | 152   base::WeakPtrFactory<ThrottledFileSystem> weak_ptr_factory_; | 
| 153   DISALLOW_COPY_AND_ASSIGN(ThrottledFileSystem); | 153   DISALLOW_COPY_AND_ASSIGN(ThrottledFileSystem); | 
| 154 }; | 154 }; | 
| 155 | 155 | 
| 156 }  // namespace file_system_provider | 156 }  // namespace file_system_provider | 
| 157 }  // namespace chromeos | 157 }  // namespace chromeos | 
| 158 | 158 | 
| 159 #endif  // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ | 159 #endif  // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_THROTTLED_FILE_SYSTEM_H_ | 
| OLD | NEW | 
|---|