1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "public/platform/WebStorageQuotaCallbacks.h"
8 #include "platform/StorageQuotaCallbacks.h"
12 WebStorageQuotaCallbacks::WebStorageQuotaCallbacks(StorageQuotaCallbacks* callbacks)
13 : m_private(callbacks)
17 void WebStorageQuotaCallbacks::reset()
22 void WebStorageQuotaCallbacks::assign(const WebStorageQuotaCallbacks& other)
24 m_private = other.m_private;
27 void WebStorageQuotaCallbacks::didQueryStorageUsageAndQuota(unsigned long long usageInBytes, unsigned long long quotaInBytes)
29 ASSERT(!m_private.isNull());
30 m_private->didQueryStorageUsageAndQuota(usageInBytes, quotaInBytes);
34 void WebStorageQuotaCallbacks::didGrantStorageQuota(unsigned long long usageInBytes, unsigned long long grantedQuotaInBytes)
36 ASSERT(!m_private.isNull());
37 m_private->didGrantStorageQuota(usageInBytes, grantedQuotaInBytes);
41 void WebStorageQuotaCallbacks::didFail(WebStorageQuotaError error)
43 ASSERT(!m_private.isNull());
44 m_private->didFail(error);