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

Side by Side Diff: webkit/quota/quota_types.h

Issue 7322005: Revert 91690 - Implement QM::GetOriginsModifiedSince for browser data deleter support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « webkit/quota/quota_manager_unittest.cc ('k') | no next file » | 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_QUOTA_QUOTA_TYPES_H_ 5 #ifndef WEBKIT_QUOTA_QUOTA_TYPES_H_
6 #define WEBKIT_QUOTA_QUOTA_TYPES_H_ 6 #define WEBKIT_QUOTA_QUOTA_TYPES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/callback_old.h" 14 #include "base/callback_old.h"
15 #include "base/stl_util-inl.h" 15 #include "base/stl_util-inl.h"
16 16
17 class GURL;
18
19 namespace quota { 17 namespace quota {
20 18
21 enum StorageType { 19 enum StorageType {
22 kStorageTypeTemporary, 20 kStorageTypeTemporary,
23 kStorageTypePersistent, 21 kStorageTypePersistent,
24 kStorageTypeUnknown, 22 kStorageTypeUnknown,
25 }; 23 };
26 24
27 // TODO(tzik): Add assertions to 25 // TODO(tzik): Add assertions to
28 // content/browser/renderer_host/quota_dispatcher_host.cc 26 // content/browser/renderer_host/quota_dispatcher_host.cc
(...skipping 16 matching lines...) Expand all
45 typedef Callback3<const std::string& /* host */, 43 typedef Callback3<const std::string& /* host */,
46 StorageType, 44 StorageType,
47 int64>::Type HostUsageCallback; 45 int64>::Type HostUsageCallback;
48 typedef Callback4<QuotaStatusCode, 46 typedef Callback4<QuotaStatusCode,
49 const std::string& /* host */, 47 const std::string& /* host */,
50 StorageType, 48 StorageType,
51 int64>::Type HostQuotaCallback; 49 int64>::Type HostQuotaCallback;
52 typedef Callback2<QuotaStatusCode, 50 typedef Callback2<QuotaStatusCode,
53 int64>::Type AvailableSpaceCallback; 51 int64>::Type AvailableSpaceCallback;
54 typedef Callback1<QuotaStatusCode>::Type StatusCallback; 52 typedef Callback1<QuotaStatusCode>::Type StatusCallback;
55 typedef Callback1<const std::set<GURL>&>::Type GetOriginsCallback;
56 53
57 // Simple template wrapper for a callback queue. 54 // Simple template wrapper for a callback queue.
58 template <typename CallbackType> 55 template <typename CallbackType>
59 class CallbackQueueBase { 56 class CallbackQueueBase {
60 public: 57 public:
61 typedef typename std::deque<CallbackType> Queue; 58 typedef typename std::deque<CallbackType> Queue;
62 typedef typename Queue::iterator iterator; 59 typedef typename Queue::iterator iterator;
63 60
64 virtual ~CallbackQueueBase() { 61 virtual ~CallbackQueueBase() {
65 STLDeleteContainerPointers(callbacks_.begin(), callbacks_.end()); 62 STLDeleteContainerPointers(callbacks_.begin(), callbacks_.end());
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 const std::string&, 269 const std::string&,
273 StorageType, int64> HostUsageCallbackMap; 270 StorageType, int64> HostUsageCallbackMap;
274 typedef CallbackQueueMap4<HostQuotaCallback*, std::string, 271 typedef CallbackQueueMap4<HostQuotaCallback*, std::string,
275 QuotaStatusCode, 272 QuotaStatusCode,
276 const std::string&, 273 const std::string&,
277 StorageType, int64> HostQuotaCallbackMap; 274 StorageType, int64> HostQuotaCallbackMap;
278 275
279 } // namespace quota 276 } // namespace quota
280 277
281 #endif // WEBKIT_QUOTA_QUOTA_TYPES_H_ 278 #endif // WEBKIT_QUOTA_QUOTA_TYPES_H_
OLDNEW
« no previous file with comments | « webkit/quota/quota_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698