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

Side by Side Diff: Source/modules/quota/DeprecatedStorageQuota.h

Issue 294953002: Oilpan: enable Oilpan by default in modules/quota. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef DeprecatedStorageQuota_h 31 #ifndef DeprecatedStorageQuota_h
32 #define DeprecatedStorageQuota_h 32 #define DeprecatedStorageQuota_h
33 33
34 #include "bindings/v8/ScriptWrappable.h" 34 #include "bindings/v8/ScriptWrappable.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
37 #include "wtf/PassRefPtr.h"
38 #include "wtf/RefCounted.h"
39 37
40 namespace WebCore { 38 namespace WebCore {
41 39
42 class ExecutionContext; 40 class ExecutionContext;
43 class StorageErrorCallback; 41 class StorageErrorCallback;
44 class StorageQuotaCallback; 42 class StorageQuotaCallback;
45 class StorageUsageCallback; 43 class StorageUsageCallback;
46 44
47 class DeprecatedStorageQuota : public RefCountedWillBeGarbageCollectedFinalized< DeprecatedStorageQuota>, public ScriptWrappable { 45 class DeprecatedStorageQuota : public GarbageCollectedFinalized<DeprecatedStorag eQuota>, public ScriptWrappable {
48 public: 46 public:
49 enum Type { 47 enum Type {
50 Temporary, 48 Temporary,
51 Persistent, 49 Persistent,
52 }; 50 };
53 51
54 static PassRefPtrWillBeRawPtr<DeprecatedStorageQuota> create(Type type) 52 static DeprecatedStorageQuota* create(Type type)
55 { 53 {
56 return adoptRefWillBeNoop(new DeprecatedStorageQuota(type)); 54 return new DeprecatedStorageQuota(type);
57 } 55 }
58 56
59 void queryUsageAndQuota(ExecutionContext*, PassOwnPtr<StorageUsageCallback>, PassOwnPtr<StorageErrorCallback>); 57 void queryUsageAndQuota(ExecutionContext*, PassOwnPtr<StorageUsageCallback>, PassOwnPtr<StorageErrorCallback>);
60 58
61 void requestQuota(ExecutionContext*, unsigned long long newQuotaInBytes, Pas sOwnPtr<StorageQuotaCallback>, PassOwnPtr<StorageErrorCallback>); 59 void requestQuota(ExecutionContext*, unsigned long long newQuotaInBytes, Pas sOwnPtr<StorageQuotaCallback>, PassOwnPtr<StorageErrorCallback>);
62 60
63 ~DeprecatedStorageQuota(); 61 ~DeprecatedStorageQuota();
64 62
65 void trace(Visitor*) { } 63 void trace(Visitor*) { }
66 64
67 private: 65 private:
68 explicit DeprecatedStorageQuota(Type); 66 explicit DeprecatedStorageQuota(Type);
69 Type m_type; 67 Type m_type;
70 }; 68 };
71 69
72 } // namespace WebCore 70 } // namespace WebCore
73 71
74 #endif // DeprecatedStorageQuota_h 72 #endif // DeprecatedStorageQuota_h
OLDNEW
« no previous file with comments | « Source/modules/quota/DeprecatedStorageInfo.idl ('k') | Source/modules/quota/DeprecatedStorageQuota.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698