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

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

Issue 21116008: FileAPI: Move FileSystemQuotaUtil related functions into SandboxContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 7 years, 4 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // arguments. 231 // arguments.
232 FileSystemURL CreateCrackedFileSystemURL(const GURL& origin, 232 FileSystemURL CreateCrackedFileSystemURL(const GURL& origin,
233 FileSystemType type, 233 FileSystemType type,
234 const base::FilePath& path) const; 234 const base::FilePath& path) const;
235 235
236 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD) 236 #if defined(OS_CHROMEOS) && defined(GOOGLE_CHROME_BUILD)
237 // Used only on ChromeOS for now. 237 // Used only on ChromeOS for now.
238 void EnableTemporaryFileSystemInIncognito(); 238 void EnableTemporaryFileSystemInIncognito();
239 #endif 239 #endif
240 240
241 SandboxContext* sandbox_context() { return sandbox_context_.get(); }
242
241 private: 243 private:
242 typedef std::map<FileSystemType, FileSystemBackend*> 244 typedef std::map<FileSystemType, FileSystemBackend*>
243 FileSystemBackendMap; 245 FileSystemBackendMap;
244 246
245 // For CreateFileSystemOperation. 247 // For CreateFileSystemOperation.
246 friend class FileSystemOperationRunner; 248 friend class FileSystemOperationRunner;
247 249
248 // For sandbox_backend(). 250 // For sandbox_backend().
249 friend class SandboxFileSystemTestHelper; 251 friend class SandboxFileSystemTestHelper;
250 252
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 331
330 struct DefaultContextDeleter { 332 struct DefaultContextDeleter {
331 static void Destruct(const FileSystemContext* context) { 333 static void Destruct(const FileSystemContext* context) {
332 context->DeleteOnCorrectThread(); 334 context->DeleteOnCorrectThread();
333 } 335 }
334 }; 336 };
335 337
336 } // namespace fileapi 338 } // namespace fileapi
337 339
338 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 340 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698