| OLD | NEW | 
|    1 // Copyright 2013 The Chromium Authors. All rights reserved. |    1 // Copyright 2013 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 COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ |    5 #ifndef COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 
|    6 #define COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ |    6 #define COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 
|    7  |    7  | 
 |    8 #include <stdint.h> | 
 |    9  | 
|    8 #include "components/drive/file_system_interface.h" |   10 #include "components/drive/file_system_interface.h" | 
|    9  |   11  | 
|   10 namespace drive { |   12 namespace drive { | 
|   11  |   13  | 
|   12 // Dummy implementation of FileSystemInterface. All functions do nothing. |   14 // Dummy implementation of FileSystemInterface. All functions do nothing. | 
|   13 class DummyFileSystem : public FileSystemInterface { |   15 class DummyFileSystem : public FileSystemInterface { | 
|   14  public: |   16  public: | 
|   15   ~DummyFileSystem() override {} |   17   ~DummyFileSystem() override {} | 
|   16   void AddObserver(FileSystemObserver* observer) override {} |   18   void AddObserver(FileSystemObserver* observer) override {} | 
|   17   void RemoveObserver(FileSystemObserver* observer) override {} |   19   void RemoveObserver(FileSystemObserver* observer) override {} | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
|   40                        const FileOperationCallback& callback) override {} |   42                        const FileOperationCallback& callback) override {} | 
|   41   void CreateFile(const base::FilePath& file_path, |   43   void CreateFile(const base::FilePath& file_path, | 
|   42                   bool is_exclusive, |   44                   bool is_exclusive, | 
|   43                   const std::string& mime_type, |   45                   const std::string& mime_type, | 
|   44                   const FileOperationCallback& callback) override {} |   46                   const FileOperationCallback& callback) override {} | 
|   45   void TouchFile(const base::FilePath& file_path, |   47   void TouchFile(const base::FilePath& file_path, | 
|   46                  const base::Time& last_access_time, |   48                  const base::Time& last_access_time, | 
|   47                  const base::Time& last_modified_time, |   49                  const base::Time& last_modified_time, | 
|   48                  const FileOperationCallback& callback) override {} |   50                  const FileOperationCallback& callback) override {} | 
|   49   void TruncateFile(const base::FilePath& file_path, |   51   void TruncateFile(const base::FilePath& file_path, | 
|   50                     int64 length, |   52                     int64_t length, | 
|   51                     const FileOperationCallback& callback) override {} |   53                     const FileOperationCallback& callback) override {} | 
|   52   void Pin(const base::FilePath& file_path, |   54   void Pin(const base::FilePath& file_path, | 
|   53            const FileOperationCallback& callback) override {} |   55            const FileOperationCallback& callback) override {} | 
|   54   void Unpin(const base::FilePath& file_path, |   56   void Unpin(const base::FilePath& file_path, | 
|   55              const FileOperationCallback& callback) override {} |   57              const FileOperationCallback& callback) override {} | 
|   56   void GetFile(const base::FilePath& file_path, |   58   void GetFile(const base::FilePath& file_path, | 
|   57                const GetFileCallback& callback) override {} |   59                const GetFileCallback& callback) override {} | 
|   58   void GetFileForSaving(const base::FilePath& file_path, |   60   void GetFileForSaving(const base::FilePath& file_path, | 
|   59                         const GetFileCallback& callback) override {} |   61                         const GetFileCallback& callback) override {} | 
|   60   base::Closure GetFileContent( |   62   base::Closure GetFileContent( | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   93                      const FileOperationCallback& callback) override {} |   95                      const FileOperationCallback& callback) override {} | 
|   94   void SetProperty(const base::FilePath& drive_file_path, |   96   void SetProperty(const base::FilePath& drive_file_path, | 
|   95                    google_apis::drive::Property::Visibility visibility, |   97                    google_apis::drive::Property::Visibility visibility, | 
|   96                    const std::string& key, |   98                    const std::string& key, | 
|   97                    const std::string& value, |   99                    const std::string& value, | 
|   98                    const FileOperationCallback& callback) override {} |  100                    const FileOperationCallback& callback) override {} | 
|   99   void Reset(const FileOperationCallback& callback) override {} |  101   void Reset(const FileOperationCallback& callback) override {} | 
|  100   void GetPathFromResourceId(const std::string& resource_id, |  102   void GetPathFromResourceId(const std::string& resource_id, | 
|  101                              const GetFilePathCallback& callback) override {} |  103                              const GetFilePathCallback& callback) override {} | 
|  102   void FreeDiskSpaceIfNeededFor( |  104   void FreeDiskSpaceIfNeededFor( | 
|  103       int64 num_bytes, |  105       int64_t num_bytes, | 
|  104       const FreeDiskSpaceCallback& callback) override {} |  106       const FreeDiskSpaceCallback& callback) override {} | 
|  105   void CalculateEvictableCacheSize( |  107   void CalculateEvictableCacheSize( | 
|  106       const EvictableCacheSizeCallback& callback) override {} |  108       const EvictableCacheSizeCallback& callback) override {} | 
|  107 }; |  109 }; | 
|  108  |  110  | 
|  109 }  // namespace drive |  111 }  // namespace drive | 
|  110  |  112  | 
|  111 #endif  // COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ |  113 #endif  // COMPONENTS_DRIVE_DUMMY_FILE_SYSTEM_H_ | 
| OLD | NEW |