OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 class ExecutionContext; | 43 class ExecutionContext; |
44 class StorageErrorCallback; | 44 class StorageErrorCallback; |
45 class StorageQuotaCallback; | 45 class StorageQuotaCallback; |
46 class StorageUsageCallback; | 46 class StorageUsageCallback; |
47 | 47 |
48 class DeprecatedStorageInfo : public RefCountedWillBeGarbageCollectedFinalized<D
eprecatedStorageInfo>, public ScriptWrappable { | 48 class DeprecatedStorageInfo : public RefCountedWillBeGarbageCollectedFinalized<D
eprecatedStorageInfo>, public ScriptWrappable { |
49 DECLARE_GC_INFO; | |
50 public: | 49 public: |
51 enum { | 50 enum { |
52 TEMPORARY, | 51 TEMPORARY, |
53 PERSISTENT, | 52 PERSISTENT, |
54 }; | 53 }; |
55 | 54 |
56 static PassRefPtrWillBeRawPtr<DeprecatedStorageInfo> create() | 55 static PassRefPtrWillBeRawPtr<DeprecatedStorageInfo> create() |
57 { | 56 { |
58 return adoptRefWillBeNoop(new DeprecatedStorageInfo()); | 57 return adoptRefWillBeNoop(new DeprecatedStorageInfo()); |
59 } | 58 } |
(...skipping 11 matching lines...) Expand all Loading... |
71 | 70 |
72 DeprecatedStorageQuota* getStorageQuota(int storageType); | 71 DeprecatedStorageQuota* getStorageQuota(int storageType); |
73 | 72 |
74 mutable RefPtrWillBeMember<DeprecatedStorageQuota> m_temporaryStorage; | 73 mutable RefPtrWillBeMember<DeprecatedStorageQuota> m_temporaryStorage; |
75 mutable RefPtrWillBeMember<DeprecatedStorageQuota> m_persistentStorage; | 74 mutable RefPtrWillBeMember<DeprecatedStorageQuota> m_persistentStorage; |
76 }; | 75 }; |
77 | 76 |
78 } // namespace WebCore | 77 } // namespace WebCore |
79 | 78 |
80 #endif // DeprecatedStorageInfo_h | 79 #endif // DeprecatedStorageInfo_h |
OLD | NEW |