| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class StorageErrorCallback; | 47 class StorageErrorCallback; |
| 48 class StorageQuotaCallback; | 48 class StorageQuotaCallback; |
| 49 | 49 |
| 50 class StorageQuotaClient : public Supplement<Page> { | 50 class StorageQuotaClient : public Supplement<Page> { |
| 51 WTF_MAKE_NONCOPYABLE(StorageQuotaClient); | 51 WTF_MAKE_NONCOPYABLE(StorageQuotaClient); |
| 52 | 52 |
| 53 public: | 53 public: |
| 54 StorageQuotaClient() {} | 54 StorageQuotaClient() {} |
| 55 virtual ~StorageQuotaClient() {} | 55 virtual ~StorageQuotaClient() {} |
| 56 | 56 |
| 57 virtual void requestQuota(ExecutionContext*, | 57 virtual void requestQuota(ScriptState*, |
| 58 WebStorageQuotaType, | 58 WebStorageQuotaType, |
| 59 unsigned long long newQuotaInBytes, | 59 unsigned long long newQuotaInBytes, |
| 60 StorageQuotaCallback*, | 60 StorageQuotaCallback*, |
| 61 StorageErrorCallback*) = 0; | 61 StorageErrorCallback*) = 0; |
| 62 virtual ScriptPromise requestPersistentQuota( | 62 virtual ScriptPromise requestPersistentQuota( |
| 63 ScriptState*, | 63 ScriptState*, |
| 64 unsigned long long newQuotaInBytes) = 0; | 64 unsigned long long newQuotaInBytes) = 0; |
| 65 | 65 |
| 66 static const char* supplementName(); | 66 static const char* supplementName(); |
| 67 static StorageQuotaClient* from(ExecutionContext*); | 67 static StorageQuotaClient* from(ExecutionContext*); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 MODULES_EXPORT void provideStorageQuotaClientTo(Page&, StorageQuotaClient*); | 70 MODULES_EXPORT void provideStorageQuotaClientTo(Page&, StorageQuotaClient*); |
| 71 | 71 |
| 72 } // namespace blink | 72 } // namespace blink |
| 73 | 73 |
| 74 #endif // StorageQuotaClient_h | 74 #endif // StorageQuotaClient_h |
| OLD | NEW |