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

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

Issue 7003021: Added DeleteOriginData to QuotaClient (Closed)
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/sandbox_quota_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SANDBOX_QUOTA_CLIENT_H_ 5 #ifndef WEBKIT_FILEAPI_SANDBOX_QUOTA_CLIENT_H_
6 #define WEBKIT_FILEAPI_SANDBOX_QUOTA_CLIENT_H_ 6 #define WEBKIT_FILEAPI_SANDBOX_QUOTA_CLIENT_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
11 #include <set>
11 #include <string> 12 #include <string>
12 13
13 #include "base/basictypes.h" 14 #include "base/basictypes.h"
14 #include "base/file_path.h" 15 #include "base/file_path.h"
15 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
16 #include "webkit/fileapi/file_system_path_manager.h" 17 #include "webkit/fileapi/file_system_path_manager.h"
17 #include "webkit/fileapi/file_system_types.h" 18 #include "webkit/fileapi/file_system_types.h"
18 #include "webkit/quota/quota_client.h" 19 #include "webkit/quota/quota_client.h"
19 #include "webkit/quota/quota_task.h" 20 #include "webkit/quota/quota_task.h"
20 21
(...skipping 17 matching lines...) Expand all
38 virtual quota::QuotaClient::ID id() const OVERRIDE; 39 virtual quota::QuotaClient::ID id() const OVERRIDE;
39 virtual void OnQuotaManagerDestroyed() OVERRIDE; 40 virtual void OnQuotaManagerDestroyed() OVERRIDE;
40 virtual void GetOriginUsage(const GURL& origin_url, 41 virtual void GetOriginUsage(const GURL& origin_url,
41 quota::StorageType type, 42 quota::StorageType type,
42 GetUsageCallback* callback) OVERRIDE; 43 GetUsageCallback* callback) OVERRIDE;
43 virtual void GetOriginsForType(quota::StorageType type, 44 virtual void GetOriginsForType(quota::StorageType type,
44 GetOriginsCallback* callback) OVERRIDE; 45 GetOriginsCallback* callback) OVERRIDE;
45 virtual void GetOriginsForHost(quota::StorageType type, 46 virtual void GetOriginsForHost(quota::StorageType type,
46 const std::string& host, 47 const std::string& host,
47 GetOriginsCallback* callback) OVERRIDE; 48 GetOriginsCallback* callback) OVERRIDE;
49 virtual void DeleteOriginData(const GURL& origin,
50 quota::StorageType type,
51 DeletionCallback* callback) OVERRIDE;
48 52
49 private: 53 private:
50 class GetOriginUsageTask; 54 class GetOriginUsageTask;
51 class GetOriginsTaskBase; 55 class GetOriginsTaskBase;
52 class GetOriginsForTypeTask; 56 class GetOriginsForTypeTask;
53 class GetOriginsForHostTask; 57 class GetOriginsForHostTask;
58 class DeleteOriginTask;
54 59
55 typedef std::pair<fileapi::FileSystemType, std::string> TypeAndHostOrOrigin; 60 typedef std::pair<fileapi::FileSystemType, std::string> TypeAndHostOrOrigin;
56 typedef quota::CallbackQueueMap1<GetUsageCallback*, 61 typedef quota::CallbackQueueMap1<GetUsageCallback*,
57 TypeAndHostOrOrigin, 62 TypeAndHostOrOrigin,
58 int64 63 int64
59 > UsageCallbackMap; 64 > UsageCallbackMap;
60 typedef quota::CallbackQueueMap1<GetOriginsCallback*, 65 typedef quota::CallbackQueueMap1<GetOriginsCallback*,
61 fileapi::FileSystemType, 66 fileapi::FileSystemType,
62 const std::set<GURL>& 67 const std::set<GURL>&
63 > OriginsForTypeCallbackMap; 68 > OriginsForTypeCallbackMap;
(...skipping 20 matching lines...) Expand all
84 UsageCallbackMap pending_usage_callbacks_; 89 UsageCallbackMap pending_usage_callbacks_;
85 OriginsForTypeCallbackMap pending_origins_for_type_callbacks_; 90 OriginsForTypeCallbackMap pending_origins_for_type_callbacks_;
86 OriginsForHostCallbackMap pending_origins_for_host_callbacks_; 91 OriginsForHostCallbackMap pending_origins_for_host_callbacks_;
87 92
88 DISALLOW_COPY_AND_ASSIGN(SandboxQuotaClient); 93 DISALLOW_COPY_AND_ASSIGN(SandboxQuotaClient);
89 }; 94 };
90 95
91 } // namespace fileapi 96 } // namespace fileapi
92 97
93 #endif // WEBKIT_FILEAPI_SANDBOX_QUOTA_CLIENT_H_ 98 #endif // WEBKIT_FILEAPI_SANDBOX_QUOTA_CLIENT_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/sandbox_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698