OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 26 matching lines...) Expand all Loading... |
37 #include "core/dom/ExceptionCode.h" | 37 #include "core/dom/ExceptionCode.h" |
38 #include "core/dom/ExecutionContext.h" | 38 #include "core/dom/ExecutionContext.h" |
39 #include "modules/quota/StorageQuotaCallbacksImpl.h" | 39 #include "modules/quota/StorageQuotaCallbacksImpl.h" |
40 #include "modules/quota/StorageQuotaClient.h" | 40 #include "modules/quota/StorageQuotaClient.h" |
41 #include "platform/weborigin/KURL.h" | 41 #include "platform/weborigin/KURL.h" |
42 #include "platform/weborigin/SecurityOrigin.h" | 42 #include "platform/weborigin/SecurityOrigin.h" |
43 #include "public/platform/Platform.h" | 43 #include "public/platform/Platform.h" |
44 #include "public/platform/WebStorageQuotaCallbacks.h" | 44 #include "public/platform/WebStorageQuotaCallbacks.h" |
45 #include "public/platform/WebStorageQuotaType.h" | 45 #include "public/platform/WebStorageQuotaType.h" |
46 | 46 |
47 namespace WebCore { | 47 namespace blink { |
48 | 48 |
49 namespace { | 49 namespace { |
50 | 50 |
51 struct StorageTypeMapping { | 51 struct StorageTypeMapping { |
52 blink::WebStorageQuotaType type; | 52 blink::WebStorageQuotaType type; |
53 const char* const name; | 53 const char* const name; |
54 }; | 54 }; |
55 | 55 |
56 const StorageTypeMapping storageTypeMappings[] = { | 56 const StorageTypeMapping storageTypeMappings[] = { |
57 { blink::WebStorageQuotaTypeTemporary, "temporary" }, | 57 { blink::WebStorageQuotaTypeTemporary, "temporary" }, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 return promise; | 110 return promise; |
111 } | 111 } |
112 | 112 |
113 return client->requestPersistentQuota(scriptState, newQuota); | 113 return client->requestPersistentQuota(scriptState, newQuota); |
114 } | 114 } |
115 | 115 |
116 StorageQuota::~StorageQuota() | 116 StorageQuota::~StorageQuota() |
117 { | 117 { |
118 } | 118 } |
119 | 119 |
120 } // namespace WebCore | 120 } // namespace blink |
OLD | NEW |