Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 15 matching lines...) Expand all Loading... | |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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 WorkerNavigatorStorageQuota_h | 31 #ifndef WorkerNavigatorStorageQuota_h |
| 32 #define WorkerNavigatorStorageQuota_h | 32 #define WorkerNavigatorStorageQuota_h |
| 33 | 33 |
| 34 #include "core/frame/DOMWindowProperty.h" | 34 #include "core/frame/DOMWindowProperty.h" |
| 35 #include "core/workers/WorkerNavigator.h" | 35 #include "core/workers/WorkerNavigator.h" |
| 36 #include "heap/Handle.h" | |
| 37 #include "modules/quota/DeprecatedStorageQuota.h" | |
| 36 #include "platform/Supplementable.h" | 38 #include "platform/Supplementable.h" |
| 37 | 39 |
| 38 namespace WebCore { | 40 namespace WebCore { |
| 39 | 41 |
| 40 class DeprecatedStorageQuota; | |
| 41 class WorkerNavigator; | |
| 42 | |
| 43 class WorkerNavigatorStorageQuota FINAL : public Supplement<WorkerNavigator> { | 42 class WorkerNavigatorStorageQuota FINAL : public Supplement<WorkerNavigator> { |
| 44 public: | 43 public: |
| 45 virtual ~WorkerNavigatorStorageQuota(); | 44 virtual ~WorkerNavigatorStorageQuota() { } |
|
tkent
2014/02/10 08:27:40
Ditto.
sof
2014/02/10 09:07:19
Reverted.
| |
| 46 static WorkerNavigatorStorageQuota* from(WorkerNavigator*); | 45 static WorkerNavigatorStorageQuota* from(WorkerNavigator*); |
| 47 | 46 |
| 48 static DeprecatedStorageQuota* webkitTemporaryStorage(WorkerNavigator*); | 47 static DeprecatedStorageQuota* webkitTemporaryStorage(WorkerNavigator*); |
| 49 static DeprecatedStorageQuota* webkitPersistentStorage(WorkerNavigator*); | 48 static DeprecatedStorageQuota* webkitPersistentStorage(WorkerNavigator*); |
| 50 DeprecatedStorageQuota* webkitTemporaryStorage() const; | 49 DeprecatedStorageQuota* webkitTemporaryStorage() const; |
| 51 DeprecatedStorageQuota* webkitPersistentStorage() const; | 50 DeprecatedStorageQuota* webkitPersistentStorage() const; |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 explicit WorkerNavigatorStorageQuota(); | 53 explicit WorkerNavigatorStorageQuota() { } |
|
tkent
2014/02/10 08:27:40
Ditto.
sof
2014/02/10 09:07:19
Reverted.
| |
| 55 static const char* supplementName(); | 54 static const char* supplementName(); |
| 56 | 55 |
| 57 mutable RefPtr<DeprecatedStorageQuota> m_temporaryStorage; | 56 mutable RefPtrWillBePersistent<DeprecatedStorageQuota> m_temporaryStorage; |
| 58 mutable RefPtr<DeprecatedStorageQuota> m_persistentStorage; | 57 mutable RefPtrWillBePersistent<DeprecatedStorageQuota> m_persistentStorage; |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 } // namespace WebCore | 60 } // namespace WebCore |
| 62 | 61 |
| 63 #endif // WorkerNavigatorStorageQuota_h | 62 #endif // WorkerNavigatorStorageQuota_h |
| OLD | NEW |