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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBIndex.idl

Issue 2526943002: Add use counters for lots of DOM APIs.
Patch Set: Add use counters for lots of DOM APIs. Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/indexeddb/IDBIndex.idl
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBIndex.idl b/third_party/WebKit/Source/modules/indexeddb/IDBIndex.idl
index e1c4f1de37877acbe45ab1d047d969aae88fcebd..cc00ea2b77fc723a376ea0b1148a86c702f902f3 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBIndex.idl
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBIndex.idl
@@ -28,20 +28,20 @@
[
Exposed=(Window,Worker),
] interface IDBIndex {
- [RaisesException=Setter] attribute DOMString name;
- readonly attribute IDBObjectStore objectStore;
- [CallWith=ScriptState] readonly attribute any keyPath;
- readonly attribute boolean multiEntry;
- readonly attribute boolean unique;
+ [MeasureAs=IndexedDB, RaisesException=Setter] attribute DOMString name;
+ [MeasureAs=IndexedDB] readonly attribute IDBObjectStore objectStore;
+ [MeasureAs=IndexedDB, CallWith=ScriptState] readonly attribute any keyPath;
+ [MeasureAs=IndexedDB] readonly attribute boolean multiEntry;
+ [MeasureAs=IndexedDB] readonly attribute boolean unique;
- [CallWith=ScriptState, RaisesException] IDBRequest get(any key);
- [CallWith=ScriptState, RaisesException] IDBRequest getKey(any key);
+ [MeasureAs=IndexedDB, CallWith=ScriptState, RaisesException] IDBRequest get(any key);
+ [MeasureAs=IndexedDB, CallWith=ScriptState, RaisesException] IDBRequest getKey(any key);
// TODO(cmumford): 0xFFFFFFFF is not necessary. Remove once crbug.com/335871 is fixed.
- [CallWith=ScriptState, RaisesException] IDBRequest getAll([Default=Undefined] optional any range, optional unsigned long maxCount = 0xFFFFFFFF);
+ [MeasureAs=IndexedDB, CallWith=ScriptState, RaisesException] IDBRequest getAll([Default=Undefined] optional any range, optional unsigned long maxCount = 0xFFFFFFFF);
// TODO(cmumford): 0xFFFFFFFF is not necessary. Remove once crbug.com/335871 is fixed.
- [CallWith=ScriptState, RaisesException] IDBRequest getAllKeys([Default=Undefined] optional any range, [EnforceRange] optional unsigned long maxCount = 0xFFFFFFFF);
- [CallWith=ScriptState, RaisesException] IDBRequest count([Default=Undefined] optional any key);
- [CallWith=ScriptState, RaisesException] IDBRequest openCursor([Default=Undefined] optional any range, optional IDBCursorDirection direction = "next");
- [CallWith=ScriptState, RaisesException] IDBRequest openKeyCursor([Default=Undefined] optional any range, optional IDBCursorDirection direction = "next");
+ [MeasureAs=IndexedDB, CallWith=ScriptState, RaisesException] IDBRequest getAllKeys([Default=Undefined] optional any range, [EnforceRange] optional unsigned long maxCount = 0xFFFFFFFF);
+ [MeasureAs=IndexedDB, CallWith=ScriptState, RaisesException] IDBRequest count([Default=Undefined] optional any key);
+ [MeasureAs=IndexedDB, CallWith=ScriptState, RaisesException] IDBRequest openCursor([Default=Undefined] optional any range, optional IDBCursorDirection direction = "next");
+ [MeasureAs=IndexedDB, CallWith=ScriptState, RaisesException] IDBRequest openKeyCursor([Default=Undefined] optional any range, optional IDBCursorDirection direction = "next");
};

Powered by Google App Engine
This is Rietveld 408576698