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

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

Issue 22893003: Discard FileAPI pending operations on shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 ScopedVector<FileSystemBackend> additional_backends, 101 ScopedVector<FileSystemBackend> additional_backends,
102 const base::FilePath& partition_path, 102 const base::FilePath& partition_path,
103 const FileSystemOptions& options); 103 const FileSystemOptions& options);
104 104
105 bool DeleteDataForOriginOnFileThread(const GURL& origin_url); 105 bool DeleteDataForOriginOnFileThread(const GURL& origin_url);
106 106
107 quota::QuotaManagerProxy* quota_manager_proxy() const { 107 quota::QuotaManagerProxy* quota_manager_proxy() const {
108 return quota_manager_proxy_.get(); 108 return quota_manager_proxy_.get();
109 } 109 }
110 110
111 // Discards inflight operations in the operation runner.
112 void Shutdown();
113
111 // Returns a quota util for a given filesystem type. This may 114 // Returns a quota util for a given filesystem type. This may
112 // return NULL if the type does not support the usage tracking or 115 // return NULL if the type does not support the usage tracking or
113 // it is not a quota-managed storage. 116 // it is not a quota-managed storage.
114 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const; 117 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const;
115 118
116 // Returns the appropriate AsyncFileUtil instance for the given |type|. 119 // Returns the appropriate AsyncFileUtil instance for the given |type|.
117 AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) const; 120 AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) const;
118 121
119 // Returns the appropriate FileUtil instance for the given |type|. 122 // Returns the appropriate FileUtil instance for the given |type|.
120 // This may return NULL if it is given an invalid type or the filesystem 123 // This may return NULL if it is given an invalid type or the filesystem
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 318
316 struct DefaultContextDeleter { 319 struct DefaultContextDeleter {
317 static void Destruct(const FileSystemContext* context) { 320 static void Destruct(const FileSystemContext* context) {
318 context->DeleteOnCorrectThread(); 321 context->DeleteOnCorrectThread();
319 } 322 }
320 }; 323 };
321 324
322 } // namespace fileapi 325 } // namespace fileapi
323 326
324 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 327 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | webkit/browser/fileapi/file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698