Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / resources / worker-storagequota-query-usage.js
blobc82ea9f2d1cfb1f579396ad003e6328d1520fa0d
2 function requestUsage() {
3     port = self.port || self;
4     function errorCallback(error)
5     {
6         port.postMessage("errorCallback called");
7     }
9     function usageCallback(usage, quota)
10     {
11         port.postMessage("result: " + JSON.stringify({ usage: usage, quota: quota}));
12     }
14     port.postMessage("Requesting quota from " + navigator.webkitTemporaryStorage);
15     navigator.webkitTemporaryStorage.queryUsageAndQuota(usageCallback, errorCallback);
16     return true;