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

Side by Side Diff: storage/browser/fileapi/sandbox_file_system_backend_delegate.h

Issue 669603008: Standardize usage of virtual/override/final in storage/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_
6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ 6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Returns the type directory name in sandbox directory for given |type|. 80 // Returns the type directory name in sandbox directory for given |type|.
81 static std::string GetTypeString(FileSystemType type); 81 static std::string GetTypeString(FileSystemType type);
82 82
83 SandboxFileSystemBackendDelegate( 83 SandboxFileSystemBackendDelegate(
84 storage::QuotaManagerProxy* quota_manager_proxy, 84 storage::QuotaManagerProxy* quota_manager_proxy,
85 base::SequencedTaskRunner* file_task_runner, 85 base::SequencedTaskRunner* file_task_runner,
86 const base::FilePath& profile_path, 86 const base::FilePath& profile_path,
87 storage::SpecialStoragePolicy* special_storage_policy, 87 storage::SpecialStoragePolicy* special_storage_policy,
88 const FileSystemOptions& file_system_options); 88 const FileSystemOptions& file_system_options);
89 89
90 virtual ~SandboxFileSystemBackendDelegate(); 90 ~SandboxFileSystemBackendDelegate() override;
91 91
92 // Returns an origin enumerator of sandbox filesystem. 92 // Returns an origin enumerator of sandbox filesystem.
93 // This method can only be called on the file thread. 93 // This method can only be called on the file thread.
94 OriginEnumerator* CreateOriginEnumerator(); 94 OriginEnumerator* CreateOriginEnumerator();
95 95
96 // Gets a base directory path of the sandboxed filesystem that is 96 // Gets a base directory path of the sandboxed filesystem that is
97 // specified by |origin_url| and |type|. 97 // specified by |origin_url| and |type|.
98 // (The path is similar to the origin's root path but doesn't contain 98 // (The path is similar to the origin's root path but doesn't contain
99 // the 'unique' part.) 99 // the 'unique' part.)
100 // Returns an empty path if the given type is invalid. 100 // Returns an empty path if the given type is invalid.
(...skipping 19 matching lines...) Expand all
120 int64 offset, 120 int64 offset,
121 const base::Time& expected_modification_time, 121 const base::Time& expected_modification_time,
122 FileSystemContext* context) const; 122 FileSystemContext* context) const;
123 scoped_ptr<FileStreamWriter> CreateFileStreamWriter( 123 scoped_ptr<FileStreamWriter> CreateFileStreamWriter(
124 const FileSystemURL& url, 124 const FileSystemURL& url,
125 int64 offset, 125 int64 offset,
126 FileSystemContext* context, 126 FileSystemContext* context,
127 FileSystemType type) const; 127 FileSystemType type) const;
128 128
129 // FileSystemQuotaUtil overrides. 129 // FileSystemQuotaUtil overrides.
130 virtual base::File::Error DeleteOriginDataOnFileTaskRunner( 130 base::File::Error DeleteOriginDataOnFileTaskRunner(
131 FileSystemContext* context, 131 FileSystemContext* context,
132 storage::QuotaManagerProxy* proxy, 132 storage::QuotaManagerProxy* proxy,
133 const GURL& origin_url, 133 const GURL& origin_url,
134 FileSystemType type) override; 134 FileSystemType type) override;
135 virtual void GetOriginsForTypeOnFileTaskRunner( 135 void GetOriginsForTypeOnFileTaskRunner(FileSystemType type,
136 FileSystemType type, 136 std::set<GURL>* origins) override;
137 std::set<GURL>* origins) override; 137 void GetOriginsForHostOnFileTaskRunner(FileSystemType type,
138 virtual void GetOriginsForHostOnFileTaskRunner( 138 const std::string& host,
139 FileSystemType type, 139 std::set<GURL>* origins) override;
140 const std::string& host, 140 int64 GetOriginUsageOnFileTaskRunner(FileSystemContext* context,
141 std::set<GURL>* origins) override; 141 const GURL& origin_url,
142 virtual int64 GetOriginUsageOnFileTaskRunner( 142 FileSystemType type) override;
143 FileSystemContext* context, 143 scoped_refptr<QuotaReservation> CreateQuotaReservationOnFileTaskRunner(
144 const GURL& origin_url, 144 const GURL& origin_url,
145 FileSystemType type) override; 145 FileSystemType type) override;
146 virtual scoped_refptr<QuotaReservation>
147 CreateQuotaReservationOnFileTaskRunner(
148 const GURL& origin_url,
149 FileSystemType type) override;
150 146
151 // Adds an observer for the secified |type| of a file system, bound to 147 // Adds an observer for the secified |type| of a file system, bound to
152 // |task_runner|. 148 // |task_runner|.
153 virtual void AddFileUpdateObserver(FileSystemType type, 149 virtual void AddFileUpdateObserver(FileSystemType type,
154 FileUpdateObserver* observer, 150 FileUpdateObserver* observer,
155 base::SequencedTaskRunner* task_runner); 151 base::SequencedTaskRunner* task_runner);
156 virtual void AddFileChangeObserver(FileSystemType type, 152 virtual void AddFileChangeObserver(FileSystemType type,
157 FileChangeObserver* observer, 153 FileChangeObserver* observer,
158 base::SequencedTaskRunner* task_runner); 154 base::SequencedTaskRunner* task_runner);
159 virtual void AddFileAccessObserver(FileSystemType type, 155 virtual void AddFileAccessObserver(FileSystemType type,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 base::Time next_release_time_for_open_filesystem_stat_; 250 base::Time next_release_time_for_open_filesystem_stat_;
255 251
256 base::WeakPtrFactory<SandboxFileSystemBackendDelegate> weak_factory_; 252 base::WeakPtrFactory<SandboxFileSystemBackendDelegate> weak_factory_;
257 253
258 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackendDelegate); 254 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackendDelegate);
259 }; 255 };
260 256
261 } // namespace storage 257 } // namespace storage
262 258
263 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ 259 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/sandbox_file_system_backend.h ('k') | storage/browser/fileapi/sandbox_file_system_backend_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698