| 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 20 matching lines...) Expand all Loading... |
| 31 #include "modules/quota/NavigatorStorageQuota.h" | 31 #include "modules/quota/NavigatorStorageQuota.h" |
| 32 | 32 |
| 33 #include "core/frame/Navigator.h" | 33 #include "core/frame/Navigator.h" |
| 34 #include "modules/quota/DeprecatedStorageQuota.h" | 34 #include "modules/quota/DeprecatedStorageQuota.h" |
| 35 #include "modules/quota/StorageManager.h" | 35 #include "modules/quota/StorageManager.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 : ContextClient(frame) {} |
| 42 | 42 |
| 43 const char* NavigatorStorageQuota::supplementName() { | 43 const char* NavigatorStorageQuota::supplementName() { |
| 44 return "NavigatorStorageQuota"; | 44 return "NavigatorStorageQuota"; |
| 45 } | 45 } |
| 46 | 46 |
| 47 NavigatorStorageQuota& NavigatorStorageQuota::from(Navigator& navigator) { | 47 NavigatorStorageQuota& NavigatorStorageQuota::from(Navigator& navigator) { |
| 48 NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>( | 48 NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>( |
| 49 Supplement<Navigator>::from(navigator, supplementName())); | 49 Supplement<Navigator>::from(navigator, supplementName())); |
| 50 if (!supplement) { | 50 if (!supplement) { |
| 51 supplement = new NavigatorStorageQuota(navigator.frame()); | 51 supplement = new NavigatorStorageQuota(navigator.frame()); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 m_storageManager = new StorageManager(); | 97 m_storageManager = new StorageManager(); |
| 98 return m_storageManager.get(); | 98 return m_storageManager.get(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 DEFINE_TRACE(NavigatorStorageQuota) { | 101 DEFINE_TRACE(NavigatorStorageQuota) { |
| 102 visitor->trace(m_storageQuota); | 102 visitor->trace(m_storageQuota); |
| 103 visitor->trace(m_temporaryStorage); | 103 visitor->trace(m_temporaryStorage); |
| 104 visitor->trace(m_persistentStorage); | 104 visitor->trace(m_persistentStorage); |
| 105 visitor->trace(m_storageManager); | 105 visitor->trace(m_storageManager); |
| 106 Supplement<Navigator>::trace(visitor); | 106 Supplement<Navigator>::trace(visitor); |
| 107 DOMWindowProperty::trace(visitor); | 107 ContextClient::trace(visitor); |
| 108 } | 108 } |
| 109 | 109 |
| 110 } // namespace blink | 110 } // namespace blink |
| OLD | NEW |