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

Side by Side Diff: webkit/browser/fileapi/file_system_context.h

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // arguments. 228 // arguments.
229 FileSystemURL CreateCrackedFileSystemURL(const GURL& origin, 229 FileSystemURL CreateCrackedFileSystemURL(const GURL& origin,
230 FileSystemType type, 230 FileSystemType type,
231 const base::FilePath& path) const; 231 const base::FilePath& path) const;
232 232
233 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) 233 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD)
234 // Used only on ChromeOS for now. 234 // Used only on ChromeOS for now.
235 void EnableTemporaryFileSystemInIncognito(); 235 void EnableTemporaryFileSystemInIncognito();
236 #endif 236 #endif
237 237
238 SandboxContext* sandbox_context() const { return sandbox_context_.get(); }
kinuko 2013/07/24 06:04:06 We're returning a pointer to a member variable, un
nhiroki 2013/07/24 10:22:58 Done.
239
238 private: 240 private:
239 typedef std::map<FileSystemType, FileSystemBackend*> 241 typedef std::map<FileSystemType, FileSystemBackend*>
240 FileSystemBackendMap; 242 FileSystemBackendMap;
241 243
242 // For CreateFileSystemOperation. 244 // For CreateFileSystemOperation.
243 friend class FileSystemOperationRunner; 245 friend class FileSystemOperationRunner;
244 246
245 // For sandbox_backend(). 247 // For sandbox_backend().
246 friend class SandboxFileSystemTestHelper; 248 friend class SandboxFileSystemTestHelper;
247 249
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 328
327 struct DefaultContextDeleter { 329 struct DefaultContextDeleter {
328 static void Destruct(const FileSystemContext* context) { 330 static void Destruct(const FileSystemContext* context) {
329 context->DeleteOnCorrectThread(); 331 context->DeleteOnCorrectThread();
330 } 332 }
331 }; 333 };
332 334
333 } // namespace fileapi 335 } // namespace fileapi
334 336
335 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 337 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698