Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: Source/core/timing/WorkerPerformance.idl

Issue 1211443002: Expose Resource Timing methods and attribute in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698