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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 static DeprecatedStorageQuotaCallbacksImpl* create(StorageUsageCallback* suc
cess, StorageErrorCallback* error) | 47 static DeprecatedStorageQuotaCallbacksImpl* create(StorageUsageCallback* suc
cess, StorageErrorCallback* error) |
48 { | 48 { |
49 return new DeprecatedStorageQuotaCallbacksImpl(success, error); | 49 return new DeprecatedStorageQuotaCallbacksImpl(success, error); |
50 } | 50 } |
51 | 51 |
52 static DeprecatedStorageQuotaCallbacksImpl* create(StorageQuotaCallback* suc
cess, StorageErrorCallback* error) | 52 static DeprecatedStorageQuotaCallbacksImpl* create(StorageQuotaCallback* suc
cess, StorageErrorCallback* error) |
53 { | 53 { |
54 return new DeprecatedStorageQuotaCallbacksImpl(success, error); | 54 return new DeprecatedStorageQuotaCallbacksImpl(success, error); |
55 } | 55 } |
56 | 56 |
57 virtual ~DeprecatedStorageQuotaCallbacksImpl(); | 57 ~DeprecatedStorageQuotaCallbacksImpl() override; |
58 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
59 | 59 |
60 virtual void didQueryStorageUsageAndQuota(unsigned long long usageInBytes, u
nsigned long long quotaInBytes) override; | 60 void didQueryStorageUsageAndQuota(unsigned long long usageInBytes, unsigned
long long quotaInBytes) override; |
61 virtual void didGrantStorageQuota(unsigned long long usageInBytes, unsigned
long long grantedQuotaInBytes) override; | 61 void didGrantStorageQuota(unsigned long long usageInBytes, unsigned long lon
g grantedQuotaInBytes) override; |
62 virtual void didFail(WebStorageQuotaError) override; | 62 void didFail(WebStorageQuotaError) override; |
63 | 63 |
64 private: | 64 private: |
65 DeprecatedStorageQuotaCallbacksImpl(StorageUsageCallback*, StorageErrorCallb
ack*); | 65 DeprecatedStorageQuotaCallbacksImpl(StorageUsageCallback*, StorageErrorCallb
ack*); |
66 DeprecatedStorageQuotaCallbacksImpl(StorageQuotaCallback*, StorageErrorCallb
ack*); | 66 DeprecatedStorageQuotaCallbacksImpl(StorageQuotaCallback*, StorageErrorCallb
ack*); |
67 | 67 |
68 Member<StorageUsageCallback> m_usageCallback; | 68 Member<StorageUsageCallback> m_usageCallback; |
69 Member<StorageQuotaCallback> m_quotaCallback; | 69 Member<StorageQuotaCallback> m_quotaCallback; |
70 Member<StorageErrorCallback> m_errorCallback; | 70 Member<StorageErrorCallback> m_errorCallback; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace blink | 73 } // namespace blink |
74 | 74 |
75 #endif // DeprecatedStorageQuotaCallbacksImpl_h | 75 #endif // DeprecatedStorageQuotaCallbacksImpl_h |
OLD | NEW |