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

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

Issue 7608018: Handle inconsistency between DB and Files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "webkit/fileapi/file_system_types.h" 10 #include "webkit/fileapi/file_system_types.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool unlimited_quota, 48 bool unlimited_quota,
49 FileSystemPathManager* path_manager); 49 FileSystemPathManager* path_manager);
50 ~FileSystemContext(); 50 ~FileSystemContext();
51 51
52 // This method can be called on any thread. 52 // This method can be called on any thread.
53 bool IsStorageUnlimited(const GURL& origin); 53 bool IsStorageUnlimited(const GURL& origin);
54 54
55 bool DeleteDataForOriginOnFileThread(const GURL& origin_url); 55 bool DeleteDataForOriginOnFileThread(const GURL& origin_url);
56 bool DeleteDataForOriginAndTypeOnFileThread(const GURL& origin_url, 56 bool DeleteDataForOriginAndTypeOnFileThread(const GURL& origin_url,
57 FileSystemType type); 57 FileSystemType type);
58 void RecalculateUsage(const GURL& origin_url, FileSystemType type);
58 59
59 FileSystemPathManager* path_manager() const { return path_manager_.get(); } 60 FileSystemPathManager* path_manager() const { return path_manager_.get(); }
60 quota::QuotaManagerProxy* quota_manager_proxy() const { 61 quota::QuotaManagerProxy* quota_manager_proxy() const {
61 return quota_manager_proxy_.get(); 62 return quota_manager_proxy_.get();
62 } 63 }
63 64
64 // Returns a quota util for a given filesystem type. This may 65 // Returns a quota util for a given filesystem type. This may
65 // return NULL if the type does not support the usage tracking or 66 // return NULL if the type does not support the usage tracking or
66 // it is not a quota-managed storage. 67 // it is not a quota-managed storage.
67 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const; 68 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const;
(...skipping 18 matching lines...) Expand all
86 87
87 struct DefaultContextDeleter { 88 struct DefaultContextDeleter {
88 static void Destruct(const FileSystemContext* context) { 89 static void Destruct(const FileSystemContext* context) {
89 context->DeleteOnCorrectThread(); 90 context->DeleteOnCorrectThread();
90 } 91 }
91 }; 92 };
92 93
93 } // namespace fileapi 94 } // namespace fileapi
94 95
95 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 96 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/file_system_context.cc » ('j') | webkit/fileapi/obfuscated_file_system_file_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698