| 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 24 matching lines...) Expand all Loading... |
| 35 #include "modules/quota/DeprecatedStorageQuota.h" | 35 #include "modules/quota/DeprecatedStorageQuota.h" |
| 36 #include "modules/quota/StorageQuota.h" | 36 #include "modules/quota/StorageQuota.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 NavigatorStorageQuota::NavigatorStorageQuota(LocalFrame* frame) | 40 NavigatorStorageQuota::NavigatorStorageQuota(LocalFrame* frame) |
| 41 : DOMWindowProperty(frame) | 41 : DOMWindowProperty(frame) |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 NavigatorStorageQuota::~NavigatorStorageQuota() | 45 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(NavigatorStorageQuota); |
| 46 { | |
| 47 } | |
| 48 | 46 |
| 49 const char* NavigatorStorageQuota::supplementName() | 47 const char* NavigatorStorageQuota::supplementName() |
| 50 { | 48 { |
| 51 return "NavigatorStorageQuota"; | 49 return "NavigatorStorageQuota"; |
| 52 } | 50 } |
| 53 | 51 |
| 54 NavigatorStorageQuota& NavigatorStorageQuota::from(Navigator& navigator) | 52 NavigatorStorageQuota& NavigatorStorageQuota::from(Navigator& navigator) |
| 55 { | 53 { |
| 56 NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>(Will
BeHeapSupplement<Navigator>::from(navigator, supplementName())); | 54 NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>(Will
BeHeapSupplement<Navigator>::from(navigator, supplementName())); |
| 57 if (!supplement) { | 55 if (!supplement) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 m_persistentStorage = DeprecatedStorageQuota::create(DeprecatedStorageQu
ota::Persistent); | 94 m_persistentStorage = DeprecatedStorageQuota::create(DeprecatedStorageQu
ota::Persistent); |
| 97 return m_persistentStorage.get(); | 95 return m_persistentStorage.get(); |
| 98 } | 96 } |
| 99 | 97 |
| 100 void NavigatorStorageQuota::trace(Visitor* visitor) | 98 void NavigatorStorageQuota::trace(Visitor* visitor) |
| 101 { | 99 { |
| 102 visitor->trace(m_storageQuota); | 100 visitor->trace(m_storageQuota); |
| 103 visitor->trace(m_temporaryStorage); | 101 visitor->trace(m_temporaryStorage); |
| 104 visitor->trace(m_persistentStorage); | 102 visitor->trace(m_persistentStorage); |
| 105 WillBeHeapSupplement<Navigator>::trace(visitor); | 103 WillBeHeapSupplement<Navigator>::trace(visitor); |
| 104 DOMWindowProperty::trace(visitor); |
| 106 } | 105 } |
| 107 | 106 |
| 108 } // namespace blink | 107 } // namespace blink |
| OLD | NEW |