| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Performance Timeline | 42 // Performance Timeline |
| 43 // https://w3c.github.io/performance-timeline/#the-performance-interface | 43 // https://w3c.github.io/performance-timeline/#the-performance-interface |
| 44 // TODO(philipj): getEntries() should take an optional FilterOptions argumen
t. | 44 // TODO(philipj): getEntries() should take an optional FilterOptions argumen
t. |
| 45 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] PerformanceEntryList getEn
tries(); | 45 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] PerformanceEntryList getEn
tries(); |
| 46 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] PerformanceEntryList getEn
triesByType(DOMString entryType); | 46 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] PerformanceEntryList getEn
triesByType(DOMString entryType); |
| 47 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] PerformanceEntryList getEn
triesByName(DOMString name, optional DOMString entryType = null); | 47 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] PerformanceEntryList getEn
triesByName(DOMString name, optional DOMString entryType = null); |
| 48 | 48 |
| 49 // Resource Timing | 49 // Resource Timing |
| 50 // https://w3c.github.io/resource-timing/#extensions-performance-interface | 50 // https://w3c.github.io/resource-timing/#extensions-performance-interface |
| 51 // TODO(philipj): Unprefix these APIs. | 51 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearResourceTimings(
); |
| 52 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, MeasureAs=PrefixedPerforma
nceClearResourceTimings] void webkitClearResourceTimings(); | 52 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void setResourceTimingBuff
erSize(unsigned long maxSize); |
| 53 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, MeasureAs=PrefixedPerforma
nceSetResourceTimingBufferSize] void webkitSetResourceTimingBufferSize(unsigned
long maxSize); | 53 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] attribute EventHandler onr
esourcetimingbufferfull; |
| 54 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] attribute EventHandler onw
ebkitresourcetimingbufferfull; | |
| 55 | 54 |
| 56 // User Timing | 55 // User Timing |
| 57 // https://w3c.github.io/user-timing/#extensions-performance-interface | 56 // https://w3c.github.io/user-timing/#extensions-performance-interface |
| 58 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, RaisesException] void mark
(DOMString markName); | 57 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, RaisesException] void mark
(DOMString markName); |
| 59 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearMarks(optional D
OMString markName = null); | 58 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearMarks(optional D
OMString markName = null); |
| 60 | 59 |
| 61 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, RaisesException] void meas
ure(DOMString measureName, optional DOMString startMark = null, optional DOMStri
ng endMark = null); | 60 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, RaisesException] void meas
ure(DOMString measureName, optional DOMString startMark = null, optional DOMStri
ng endMark = null); |
| 62 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearMeasures(optiona
l DOMString measureName = null); | 61 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearMeasures(optiona
l DOMString measureName = null); |
| 63 | 62 |
| 64 // TODO(philipj): There is no spec for the Memory Info API, see blink-dev: | 63 // TODO(philipj): There is no spec for the Memory Info API, see blink-dev: |
| 65 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ
z71NmPwJ | 64 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ
z71NmPwJ |
| 66 [RuntimeEnabled=MemoryInfoInWorkers] readonly attribute MemoryInfo memory; | 65 [RuntimeEnabled=MemoryInfoInWorkers] readonly attribute MemoryInfo memory; |
| 67 }; | 66 }; |
| OLD | NEW |