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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "modules/quota/StorageQuota.h" | 32 #include "modules/quota/StorageQuota.h" |
33 | 33 |
34 #include "core/dom/ExceptionCode.h" | 34 #include "core/dom/ExceptionCode.h" |
35 #include "core/dom/ExecutionContext.h" | 35 #include "core/dom/ExecutionContext.h" |
36 #include "modules/quota/StorageErrorCallback.h" | 36 #include "modules/quota/StorageErrorCallback.h" |
37 #include "modules/quota/StorageUsageCallback.h" | 37 #include "modules/quota/StorageUsageCallback.h" |
38 #include "modules/quota/WebStorageQuotaCallbacksImpl.h" | 38 #include "modules/quota/WebStorageQuotaCallbacksImpl.h" |
| 39 #include "platform/weborigin/KURL.h" |
| 40 #include "platform/weborigin/SecurityOrigin.h" |
39 #include "public/platform/Platform.h" | 41 #include "public/platform/Platform.h" |
40 #include "public/platform/WebStorageQuotaCallbacks.h" | 42 #include "public/platform/WebStorageQuotaCallbacks.h" |
41 #include "public/platform/WebStorageQuotaType.h" | 43 #include "public/platform/WebStorageQuotaType.h" |
42 #include "weborigin/KURL.h" | |
43 #include "weborigin/SecurityOrigin.h" | |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 StorageQuota::StorageQuota(Type type) | 47 StorageQuota::StorageQuota(Type type) |
48 : m_type(type) | 48 : m_type(type) |
49 { | 49 { |
50 ScriptWrappable::init(this); | 50 ScriptWrappable::init(this); |
51 } | 51 } |
52 | 52 |
53 void StorageQuota::queryUsageAndQuota(ExecutionContext* executionContext, PassRe
fPtr<StorageUsageCallback> successCallback, PassRefPtr<StorageErrorCallback> err
orCallback) | 53 void StorageQuota::queryUsageAndQuota(ExecutionContext* executionContext, PassRe
fPtr<StorageUsageCallback> successCallback, PassRefPtr<StorageErrorCallback> err
orCallback) |
(...skipping 15 matching lines...) Expand all Loading... |
69 | 69 |
70 KURL storagePartition = KURL(KURL(), securityOrigin->toString()); | 70 KURL storagePartition = KURL(KURL(), securityOrigin->toString()); |
71 blink::Platform::current()->queryStorageUsageAndQuota(storagePartition, stor
ageType, WebStorageQuotaCallbacksImpl::createLeakedPtr(successCallback, errorCal
lback)); | 71 blink::Platform::current()->queryStorageUsageAndQuota(storagePartition, stor
ageType, WebStorageQuotaCallbacksImpl::createLeakedPtr(successCallback, errorCal
lback)); |
72 } | 72 } |
73 | 73 |
74 StorageQuota::~StorageQuota() | 74 StorageQuota::~StorageQuota() |
75 { | 75 { |
76 } | 76 } |
77 | 77 |
78 } // namespace WebCore | 78 } // namespace WebCore |
OLD | NEW |