Chromium Code Reviews| 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 21 matching lines...) Expand all Loading... | |
| 32 GarbageCollected, | 32 GarbageCollected, |
| 33 NoInterfaceObject | 33 NoInterfaceObject |
| 34 ] interface WorkerPerformance : EventTarget { | 34 ] interface WorkerPerformance : EventTarget { |
| 35 // See https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime2 /Overview.html for details. | 35 // See https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime2 /Overview.html for details. |
| 36 double now(); | 36 double now(); |
| 37 | 37 |
| 38 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] sequence<PerformanceEntry> getEntries(); | 38 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] sequence<PerformanceEntry> getEntries(); |
| 39 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] sequence<PerformanceEntry> getEntriesByType(DOMString entryType); | 39 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] sequence<PerformanceEntry> getEntriesByType(DOMString entryType); |
| 40 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] sequence<PerformanceEntry> getEntriesByName(DOMString name, optional DOMString entryType = null); | 40 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] sequence<PerformanceEntry> getEntriesByName(DOMString name, optional DOMString entryType = null); |
| 41 | 41 |
| 42 // TODO(ksakamoto): Add Resource Timing methods and attributes. crbug.com/46 5641 | 42 // See http://www.w3.org/TR/resource-timing/ |
| 43 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, MeasureAs=PrefixedPerforma nceClearResourceTimings] void webkitClearResourceTimings(); | |
|
tkent
2015/06/24 07:12:00
It's unfortunate to ship new prefixed functions...
| |
| 44 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, MeasureAs=PrefixedPerforma nceSetResourceTimingBufferSize] void webkitSetResourceTimingBufferSize(unsigned long maxSize); | |
| 45 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] attribute EventHandler onw ebkitresourcetimingbufferfull; | |
| 43 | 46 |
| 44 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ | 47 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ |
| 45 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, RaisesException] void mark (DOMString markName); | 48 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, RaisesException] void mark (DOMString markName); |
| 46 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearMarks(optional D OMString markName = null); | 49 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearMarks(optional D OMString markName = null); |
| 47 | 50 |
| 48 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, RaisesException] void meas ure(DOMString measureName, optional DOMString startMark = null, optional DOMStri ng endMark = null); | 51 [RuntimeEnabled=ServiceWorkerPerformanceTimeline, RaisesException] void meas ure(DOMString measureName, optional DOMString startMark = null, optional DOMStri ng endMark = null); |
| 49 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearMeasures(optiona l DOMString measureName = null); | 52 [RuntimeEnabled=ServiceWorkerPerformanceTimeline] void clearMeasures(optiona l DOMString measureName = null); |
| 50 | 53 |
| 51 [RuntimeEnabled=MemoryInfoInWorkers] readonly attribute MemoryInfo memory; | 54 [RuntimeEnabled=MemoryInfoInWorkers] readonly attribute MemoryInfo memory; |
| 52 }; | 55 }; |
| 53 | 56 |
| OLD | NEW |