Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Side by Side Diff: chrome/browser/chromeos/fileapi/file_system_backend.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Adds system mount points, such as "archive", and "removable". This 81 // Adds system mount points, such as "archive", and "removable". This
82 // function is no-op if these mount points are already present. 82 // function is no-op if these mount points are already present.
83 void AddSystemMountPoints(); 83 void AddSystemMountPoints();
84 84
85 // Returns true if CrosMountpointProvider can handle |url|, i.e. its 85 // Returns true if CrosMountpointProvider can handle |url|, i.e. its
86 // file system type matches with what this provider supports. 86 // file system type matches with what this provider supports.
87 // This could be called on any threads. 87 // This could be called on any threads.
88 static bool CanHandleURL(const storage::FileSystemURL& url); 88 static bool CanHandleURL(const storage::FileSystemURL& url);
89 89
90 // storage::FileSystemBackend overrides. 90 // storage::FileSystemBackend overrides.
91 virtual bool CanHandleType(storage::FileSystemType type) const OVERRIDE; 91 virtual bool CanHandleType(storage::FileSystemType type) const override;
92 virtual void Initialize(storage::FileSystemContext* context) OVERRIDE; 92 virtual void Initialize(storage::FileSystemContext* context) override;
93 virtual void ResolveURL(const storage::FileSystemURL& url, 93 virtual void ResolveURL(const storage::FileSystemURL& url,
94 storage::OpenFileSystemMode mode, 94 storage::OpenFileSystemMode mode,
95 const OpenFileSystemCallback& callback) OVERRIDE; 95 const OpenFileSystemCallback& callback) override;
96 virtual storage::AsyncFileUtil* GetAsyncFileUtil( 96 virtual storage::AsyncFileUtil* GetAsyncFileUtil(
97 storage::FileSystemType type) OVERRIDE; 97 storage::FileSystemType type) override;
98 virtual storage::WatcherManager* GetWatcherManager( 98 virtual storage::WatcherManager* GetWatcherManager(
99 storage::FileSystemType type) OVERRIDE; 99 storage::FileSystemType type) override;
100 virtual storage::CopyOrMoveFileValidatorFactory* 100 virtual storage::CopyOrMoveFileValidatorFactory*
101 GetCopyOrMoveFileValidatorFactory(storage::FileSystemType type, 101 GetCopyOrMoveFileValidatorFactory(storage::FileSystemType type,
102 base::File::Error* error_code) OVERRIDE; 102 base::File::Error* error_code) override;
103 virtual storage::FileSystemOperation* CreateFileSystemOperation( 103 virtual storage::FileSystemOperation* CreateFileSystemOperation(
104 const storage::FileSystemURL& url, 104 const storage::FileSystemURL& url,
105 storage::FileSystemContext* context, 105 storage::FileSystemContext* context,
106 base::File::Error* error_code) const OVERRIDE; 106 base::File::Error* error_code) const override;
107 virtual bool SupportsStreaming( 107 virtual bool SupportsStreaming(
108 const storage::FileSystemURL& url) const OVERRIDE; 108 const storage::FileSystemURL& url) const override;
109 virtual bool HasInplaceCopyImplementation( 109 virtual bool HasInplaceCopyImplementation(
110 storage::FileSystemType type) const OVERRIDE; 110 storage::FileSystemType type) const override;
111 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 111 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
112 const storage::FileSystemURL& path, 112 const storage::FileSystemURL& path,
113 int64 offset, 113 int64 offset,
114 int64 max_bytes_to_read, 114 int64 max_bytes_to_read,
115 const base::Time& expected_modification_time, 115 const base::Time& expected_modification_time,
116 storage::FileSystemContext* context) const OVERRIDE; 116 storage::FileSystemContext* context) const override;
117 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 117 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
118 const storage::FileSystemURL& url, 118 const storage::FileSystemURL& url,
119 int64 offset, 119 int64 offset,
120 storage::FileSystemContext* context) const OVERRIDE; 120 storage::FileSystemContext* context) const override;
121 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 121 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() override;
122 virtual const storage::UpdateObserverList* GetUpdateObservers( 122 virtual const storage::UpdateObserverList* GetUpdateObservers(
123 storage::FileSystemType type) const OVERRIDE; 123 storage::FileSystemType type) const override;
124 virtual const storage::ChangeObserverList* GetChangeObservers( 124 virtual const storage::ChangeObserverList* GetChangeObservers(
125 storage::FileSystemType type) const OVERRIDE; 125 storage::FileSystemType type) const override;
126 virtual const storage::AccessObserverList* GetAccessObservers( 126 virtual const storage::AccessObserverList* GetAccessObservers(
127 storage::FileSystemType type) const OVERRIDE; 127 storage::FileSystemType type) const override;
128 128
129 // storage::ExternalFileSystemBackend overrides. 129 // storage::ExternalFileSystemBackend overrides.
130 virtual bool IsAccessAllowed( 130 virtual bool IsAccessAllowed(
131 const storage::FileSystemURL& url) const OVERRIDE; 131 const storage::FileSystemURL& url) const override;
132 virtual std::vector<base::FilePath> GetRootDirectories() const OVERRIDE; 132 virtual std::vector<base::FilePath> GetRootDirectories() const override;
133 virtual void GrantFullAccessToExtension( 133 virtual void GrantFullAccessToExtension(
134 const std::string& extension_id) OVERRIDE; 134 const std::string& extension_id) override;
135 virtual void GrantFileAccessToExtension( 135 virtual void GrantFileAccessToExtension(
136 const std::string& extension_id, 136 const std::string& extension_id,
137 const base::FilePath& virtual_path) OVERRIDE; 137 const base::FilePath& virtual_path) override;
138 virtual void RevokeAccessForExtension( 138 virtual void RevokeAccessForExtension(
139 const std::string& extension_id) OVERRIDE; 139 const std::string& extension_id) override;
140 virtual bool GetVirtualPath(const base::FilePath& filesystem_path, 140 virtual bool GetVirtualPath(const base::FilePath& filesystem_path,
141 base::FilePath* virtual_path) OVERRIDE; 141 base::FilePath* virtual_path) override;
142 virtual void GetRedirectURLForContents( 142 virtual void GetRedirectURLForContents(
143 const storage::FileSystemURL& url, 143 const storage::FileSystemURL& url,
144 const storage::URLCallback& callback) OVERRIDE; 144 const storage::URLCallback& callback) override;
145 145
146 private: 146 private:
147 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 147 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
148 scoped_ptr<FileAccessPermissions> file_access_permissions_; 148 scoped_ptr<FileAccessPermissions> file_access_permissions_;
149 scoped_ptr<storage::AsyncFileUtil> local_file_util_; 149 scoped_ptr<storage::AsyncFileUtil> local_file_util_;
150 150
151 // The delegate instance for the drive file system related operations. 151 // The delegate instance for the drive file system related operations.
152 scoped_ptr<FileSystemBackendDelegate> drive_delegate_; 152 scoped_ptr<FileSystemBackendDelegate> drive_delegate_;
153 153
154 // The delegate instance for the provided file system related operations. 154 // The delegate instance for the provided file system related operations.
(...skipping 18 matching lines...) Expand all
173 // Globally visible mount points. System MountPonts instance should outlive 173 // Globally visible mount points. System MountPonts instance should outlive
174 // all FileSystemBackend instances, so raw pointer is safe. 174 // all FileSystemBackend instances, so raw pointer is safe.
175 storage::ExternalMountPoints* system_mount_points_; 175 storage::ExternalMountPoints* system_mount_points_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); 177 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend);
178 }; 178 };
179 179
180 } // namespace chromeos 180 } // namespace chromeos
181 181
182 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 182 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698