| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 28 matching lines...) Expand all Loading... |
| 39 #include "modules/quota/StorageQuotaCallback.h" | 39 #include "modules/quota/StorageQuotaCallback.h" |
| 40 #include "modules/quota/StorageUsageCallback.h" | 40 #include "modules/quota/StorageUsageCallback.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 DeprecatedStorageInfo::DeprecatedStorageInfo() | 44 DeprecatedStorageInfo::DeprecatedStorageInfo() |
| 45 { | 45 { |
| 46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
| 47 } | 47 } |
| 48 | 48 |
| 49 DeprecatedStorageInfo::~DeprecatedStorageInfo() | 49 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DeprecatedStorageInfo); |
| 50 { | |
| 51 } | |
| 52 | 50 |
| 53 void DeprecatedStorageInfo::queryUsageAndQuota(ExecutionContext* executionContex
t, int storageType, PassOwnPtr<StorageUsageCallback> successCallback, PassOwnPtr
<StorageErrorCallback> errorCallback) | 51 void DeprecatedStorageInfo::queryUsageAndQuota(ExecutionContext* executionContex
t, int storageType, PassOwnPtr<StorageUsageCallback> successCallback, PassOwnPtr
<StorageErrorCallback> errorCallback) |
| 54 { | 52 { |
| 55 // Dispatching the request to DeprecatedStorageQuota, as this interface is d
eprecated in favor of DeprecatedStorageQuota. | 53 // Dispatching the request to DeprecatedStorageQuota, as this interface is d
eprecated in favor of DeprecatedStorageQuota. |
| 56 DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType); | 54 DeprecatedStorageQuota* storageQuota = getStorageQuota(storageType); |
| 57 if (!storageQuota) { | 55 if (!storageQuota) { |
| 58 // Unknown storage type is requested. | 56 // Unknown storage type is requested. |
| 59 executionContext->postTask(StorageErrorCallback::CallbackTask::create(er
rorCallback, NotSupportedError)); | 57 executionContext->postTask(StorageErrorCallback::CallbackTask::create(er
rorCallback, NotSupportedError)); |
| 60 return; | 58 return; |
| 61 } | 59 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 89 return 0; | 87 return 0; |
| 90 } | 88 } |
| 91 | 89 |
| 92 void DeprecatedStorageInfo::trace(Visitor* visitor) | 90 void DeprecatedStorageInfo::trace(Visitor* visitor) |
| 93 { | 91 { |
| 94 visitor->trace(m_temporaryStorage); | 92 visitor->trace(m_temporaryStorage); |
| 95 visitor->trace(m_persistentStorage); | 93 visitor->trace(m_persistentStorage); |
| 96 } | 94 } |
| 97 | 95 |
| 98 } // namespace WebCore | 96 } // namespace WebCore |
| OLD | NEW |