OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef StorageQuotaClientImpl_h | 31 #ifndef StorageQuotaClientImpl_h |
32 #define StorageQuotaClientImpl_h | 32 #define StorageQuotaClientImpl_h |
33 | 33 |
34 #include "modules/quota/StorageQuotaClient.h" | 34 #include "modules/quota/StorageQuotaClient.h" |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class StorageQuotaClientImpl : public NoBaseWillBeGarbageCollectedFinalized<Stor
ageQuotaClientImpl>, public blink::StorageQuotaClient { | 39 class StorageQuotaClientImpl : public NoBaseWillBeGarbageCollectedFinalized<Stor
ageQuotaClientImpl>, public StorageQuotaClient { |
40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StorageQuotaClientImpl); | 40 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StorageQuotaClientImpl); |
41 public: | 41 public: |
42 static PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> create(); | 42 static PassOwnPtrWillBeRawPtr<StorageQuotaClientImpl> create(); |
43 | 43 |
44 virtual ~StorageQuotaClientImpl(); | 44 virtual ~StorageQuotaClientImpl(); |
45 | 45 |
46 virtual void requestQuota(blink::ExecutionContext*, WebStorageQuotaType, uns
igned long long newQuotaInBytes, PassOwnPtr<blink::StorageQuotaCallback>, PassOw
nPtr<blink::StorageErrorCallback>) OVERRIDE; | 46 virtual void requestQuota(ExecutionContext*, WebStorageQuotaType, unsigned l
ong long newQuotaInBytes, PassOwnPtr<StorageQuotaCallback>, PassOwnPtr<StorageEr
rorCallback>) OVERRIDE; |
47 virtual blink::ScriptPromise requestPersistentQuota(blink::ScriptState*, uns
igned long long newQuotaInBytes) OVERRIDE; | 47 virtual ScriptPromise requestPersistentQuota(ScriptState*, unsigned long lon
g newQuotaInBytes) OVERRIDE; |
48 | 48 |
49 virtual void trace(blink::Visitor* visitor) OVERRIDE { blink::StorageQuotaCl
ient::trace(visitor); } | 49 virtual void trace(Visitor* visitor) OVERRIDE { StorageQuotaClient::trace(vi
sitor); } |
50 | 50 |
51 private: | 51 private: |
52 StorageQuotaClientImpl(); | 52 StorageQuotaClientImpl(); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace blink | 55 } // namespace blink |
56 | 56 |
57 #endif // StorageQuotaClientImpl_h | 57 #endif // StorageQuotaClientImpl_h |
OLD | NEW |