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

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

Issue 1164493003: IndexedDB: Implementation of IDBObjectStore.getAllKeys(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idb-index-getallkeys-pt2
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
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ScriptValue keyPath(ScriptState*) const; 66 ScriptValue keyPath(ScriptState*) const;
67 PassRefPtrWillBeRawPtr<DOMStringList> indexNames() const; 67 PassRefPtrWillBeRawPtr<DOMStringList> indexNames() const;
68 IDBTransaction* transaction() const { return m_transaction.get(); } 68 IDBTransaction* transaction() const { return m_transaction.get(); }
69 bool autoIncrement() const { return m_metadata.autoIncrement; } 69 bool autoIncrement() const { return m_metadata.autoIncrement; }
70 70
71 IDBRequest* openCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&); 71 IDBRequest* openCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&);
72 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri ng& direction, ExceptionState&); 72 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri ng& direction, ExceptionState&);
73 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); 73 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&);
74 IDBRequest* getAll(ScriptState*, const ScriptValue& range, unsigned long max Count, ExceptionState&); 74 IDBRequest* getAll(ScriptState*, const ScriptValue& range, unsigned long max Count, ExceptionState&);
75 IDBRequest* getAll(ScriptState*, const ScriptValue& range, ExceptionState&); 75 IDBRequest* getAll(ScriptState*, const ScriptValue& range, ExceptionState&);
76 IDBRequest* getAllKeys(ScriptState*, const ScriptValue& range, unsigned long maxCount, ExceptionState&);
77 IDBRequest* getAllKeys(ScriptState*, const ScriptValue& range, ExceptionStat e&);
76 IDBRequest* add(ScriptState*, const ScriptValue&, const ScriptValue& key, Ex ceptionState&); 78 IDBRequest* add(ScriptState*, const ScriptValue&, const ScriptValue& key, Ex ceptionState&);
77 IDBRequest* put(ScriptState*, const ScriptValue&, const ScriptValue& key, Ex ceptionState&); 79 IDBRequest* put(ScriptState*, const ScriptValue&, const ScriptValue& key, Ex ceptionState&);
78 IDBRequest* deleteFunction(ScriptState*, const ScriptValue& key, ExceptionSt ate&); 80 IDBRequest* deleteFunction(ScriptState*, const ScriptValue& key, ExceptionSt ate&);
79 IDBRequest* clear(ScriptState*, ExceptionState&); 81 IDBRequest* clear(ScriptState*, ExceptionState&);
80 82
81 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)
82 { 84 {
83 return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exce ptionState); 85 return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exce ptionState);
84 } 86 }
85 IDBIndex* index(const String& name, ExceptionState&); 87 IDBIndex* index(const String& name, ExceptionState&);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 Member<IDBTransaction> m_transaction; 122 Member<IDBTransaction> m_transaction;
121 bool m_deleted; 123 bool m_deleted;
122 124
123 typedef HeapHashMap<String, Member<IDBIndex>> IDBIndexMap; 125 typedef HeapHashMap<String, Member<IDBIndex>> IDBIndexMap;
124 IDBIndexMap m_indexMap; 126 IDBIndexMap m_indexMap;
125 }; 127 };
126 128
127 } // namespace blink 129 } // namespace blink
128 130
129 #endif // IDBObjectStore_h 131 #endif // IDBObjectStore_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698