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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h

Issue 1407883002: Add new experimental IDBObjectStore.getKey(query) API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 3 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int64_t id() const { return m_metadata.id; } 63 int64_t id() const { return m_metadata.id; }
64 const String& name() const { return m_metadata.name; } 64 const String& name() const { return m_metadata.name; }
65 ScriptValue keyPath(ScriptState*) const; 65 ScriptValue keyPath(ScriptState*) const;
66 DOMStringList* indexNames() const; 66 DOMStringList* indexNames() const;
67 IDBTransaction* transaction() const { return m_transaction.get(); } 67 IDBTransaction* transaction() const { return m_transaction.get(); }
68 bool autoIncrement() const { return m_metadata.autoIncrement; } 68 bool autoIncrement() const { return m_metadata.autoIncrement; }
69 69
70 IDBRequest* openCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&); 70 IDBRequest* openCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&);
71 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri ng& direction, ExceptionState&); 71 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri ng& direction, ExceptionState&);
72 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); 72 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&);
73 IDBRequest* getKey(ScriptState*, const ScriptValue& key, ExceptionState&);
73 IDBRequest* getAll(ScriptState*, const ScriptValue& range, unsigned long max Count, ExceptionState&); 74 IDBRequest* getAll(ScriptState*, const ScriptValue& range, unsigned long max Count, ExceptionState&);
74 IDBRequest* getAll(ScriptState*, const ScriptValue& range, ExceptionState&); 75 IDBRequest* getAll(ScriptState*, const ScriptValue& range, ExceptionState&);
75 IDBRequest* getAllKeys(ScriptState*, const ScriptValue& range, unsigned long maxCount, ExceptionState&); 76 IDBRequest* getAllKeys(ScriptState*, const ScriptValue& range, unsigned long maxCount, ExceptionState&);
76 IDBRequest* getAllKeys(ScriptState*, const ScriptValue& range, ExceptionStat e&); 77 IDBRequest* getAllKeys(ScriptState*, const ScriptValue& range, ExceptionStat e&);
77 IDBRequest* add(ScriptState*, const ScriptValue&, const ScriptValue& key, Ex ceptionState&); 78 IDBRequest* add(ScriptState*, const ScriptValue&, const ScriptValue& key, Ex ceptionState&);
78 IDBRequest* put(ScriptState*, const ScriptValue&, const ScriptValue& key, Ex ceptionState&); 79 IDBRequest* put(ScriptState*, const ScriptValue&, const ScriptValue& key, Ex ceptionState&);
79 IDBRequest* deleteFunction(ScriptState*, const ScriptValue& key, ExceptionSt ate&); 80 IDBRequest* deleteFunction(ScriptState*, const ScriptValue& key, ExceptionSt ate&);
80 IDBRequest* clear(ScriptState*, ExceptionState&); 81 IDBRequest* clear(ScriptState*, ExceptionState&);
81 82
82 IDBIndex* createIndex(ScriptState* scriptState, const String& name, const St ringOrStringSequence& keyPath, const IDBIndexParameters& options, ExceptionState & exceptionState) 83 IDBIndex* createIndex(ScriptState* scriptState, const String& name, const St ringOrStringSequence& keyPath, const IDBIndexParameters& options, ExceptionState & exceptionState)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 IDBIndexMap m_indexMap; 127 IDBIndexMap m_indexMap;
127 128
128 // Used to mark indexes created in an aborted upgrade transaction as 129 // Used to mark indexes created in an aborted upgrade transaction as
129 // deleted. 130 // deleted.
130 HeapHashSet<Member<IDBIndex>> m_createdIndexes; 131 HeapHashSet<Member<IDBIndex>> m_createdIndexes;
131 }; 132 };
132 133
133 } // namespace blink 134 } // namespace blink
134 135
135 #endif // IDBObjectStore_h 136 #endif // IDBObjectStore_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698