OLD | NEW |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 IDBRequest* openCursor(ScriptState*, const ScriptValue& key, const String& d
irection, ExceptionState&); | 62 IDBRequest* openCursor(ScriptState*, const ScriptValue& key, const String& d
irection, ExceptionState&); |
63 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri
ng& direction, ExceptionState&); | 63 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri
ng& direction, ExceptionState&); |
64 IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&); | 64 IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&); |
65 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); | 65 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); |
66 IDBRequest* getKey(ScriptState*, const ScriptValue& key, ExceptionState&); | 66 IDBRequest* getKey(ScriptState*, const ScriptValue& key, ExceptionState&); |
67 | 67 |
68 void markDeleted() { m_deleted = true; } | 68 void markDeleted() { m_deleted = true; } |
69 bool isDeleted() const; | 69 bool isDeleted() const; |
70 | 70 |
71 // Used internally and by InspectorIndexedDBAgent: | 71 // Used internally and by InspectorIndexedDBAgent: |
72 IDBRequest* openCursor(ScriptState*, IDBKeyRange*, blink::WebIDBCursorDirect
ion); | 72 IDBRequest* openCursor(ScriptState*, IDBKeyRange*, WebIDBCursorDirection); |
73 | 73 |
74 blink::WebIDBDatabase* backendDB() const; | 74 WebIDBDatabase* backendDB() const; |
75 | 75 |
76 private: | 76 private: |
77 IDBIndex(const IDBIndexMetadata&, IDBObjectStore*, IDBTransaction*); | 77 IDBIndex(const IDBIndexMetadata&, IDBObjectStore*, IDBTransaction*); |
78 | 78 |
79 IDBRequest* getInternal(ScriptState*, const ScriptValue& key, ExceptionState
&, bool keyOnly); | 79 IDBRequest* getInternal(ScriptState*, const ScriptValue& key, ExceptionState
&, bool keyOnly); |
80 | 80 |
81 IDBIndexMetadata m_metadata; | 81 IDBIndexMetadata m_metadata; |
82 Member<IDBObjectStore> m_objectStore; | 82 Member<IDBObjectStore> m_objectStore; |
83 Member<IDBTransaction> m_transaction; | 83 Member<IDBTransaction> m_transaction; |
84 bool m_deleted; | 84 bool m_deleted; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace blink | 87 } // namespace blink |
88 | 88 |
89 #endif // IDBIndex_h | 89 #endif // IDBIndex_h |
OLD | NEW |