| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Implement the IDL | 53 // Implement the IDL |
| 54 const String name() const { return m_metadata.name; } | 54 const String name() const { return m_metadata.name; } |
| 55 PassRefPtr<IDBObjectStore> objectStore() const { return m_objectStore; } | 55 PassRefPtr<IDBObjectStore> objectStore() const { return m_objectStore; } |
| 56 PassRefPtr<IDBAny> keyPathAny() const { return IDBAny::create(m_metadata.key
Path); } | 56 PassRefPtr<IDBAny> keyPathAny() const { return IDBAny::create(m_metadata.key
Path); } |
| 57 const IDBKeyPath keyPath() const { return m_metadata.keyPath; } | 57 const IDBKeyPath keyPath() const { return m_metadata.keyPath; } |
| 58 bool unique() const { return m_metadata.unique; } | 58 bool unique() const { return m_metadata.unique; } |
| 59 bool multiEntry() const { return m_metadata.multiEntry; } | 59 bool multiEntry() const { return m_metadata.multiEntry; } |
| 60 int64_t id() const { return m_metadata.id; } | 60 int64_t id() const { return m_metadata.id; } |
| 61 | 61 |
| 62 PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, PassRefPtr<IDBKey
Range>, const String& direction, ExceptionCode&); | 62 IDBRequest* openCursor(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, con
st String& direction, ExceptionCode&); |
| 63 PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, const ScriptValue
& key, const String& direction, ExceptionCode&); | 63 IDBRequest* openCursor(ScriptExecutionContext*, const ScriptValue& key, cons
t String& direction, ExceptionCode&); |
| 64 PassRefPtr<IDBRequest> count(ScriptExecutionContext*, PassRefPtr<IDBKeyRange
>, ExceptionCode&); | 64 IDBRequest* count(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, Exceptio
nCode&); |
| 65 PassRefPtr<IDBRequest> count(ScriptExecutionContext*, const ScriptValue& key
, ExceptionCode&); | 65 IDBRequest* count(ScriptExecutionContext*, const ScriptValue& key, Exception
Code&); |
| 66 PassRefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext*, PassRefPtr<IDB
KeyRange>, const String& direction, ExceptionCode&); | 66 IDBRequest* openKeyCursor(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>,
const String& direction, ExceptionCode&); |
| 67 PassRefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext*, const ScriptVa
lue& key, const String& direction, ExceptionCode&); | 67 IDBRequest* openKeyCursor(ScriptExecutionContext*, const ScriptValue& key, c
onst String& direction, ExceptionCode&); |
| 68 PassRefPtr<IDBRequest> get(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>,
ExceptionCode&); | 68 IDBRequest* get(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, ExceptionC
ode&); |
| 69 PassRefPtr<IDBRequest> get(ScriptExecutionContext*, const ScriptValue& key,
ExceptionCode&); | 69 IDBRequest* get(ScriptExecutionContext*, const ScriptValue& key, ExceptionCo
de&); |
| 70 PassRefPtr<IDBRequest> getKey(ScriptExecutionContext*, PassRefPtr<IDBKeyRang
e>, ExceptionCode&); | 70 IDBRequest* getKey(ScriptExecutionContext*, PassRefPtr<IDBKeyRange>, Excepti
onCode&); |
| 71 PassRefPtr<IDBRequest> getKey(ScriptExecutionContext*, const ScriptValue& ke
y, ExceptionCode&); | 71 IDBRequest* getKey(ScriptExecutionContext*, const ScriptValue& key, Exceptio
nCode&); |
| 72 | 72 |
| 73 void markDeleted() { m_deleted = true; } | 73 void markDeleted() { m_deleted = true; } |
| 74 bool isDeleted() const; | 74 bool isDeleted() const; |
| 75 | 75 |
| 76 IDBDatabaseBackendInterface* backendDB() const; | 76 IDBDatabaseBackendInterface* backendDB() const; |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 IDBIndex(const IDBIndexMetadata&, IDBObjectStore*, IDBTransaction*); | 79 IDBIndex(const IDBIndexMetadata&, IDBObjectStore*, IDBTransaction*); |
| 80 | 80 |
| 81 IDBIndexMetadata m_metadata; | 81 IDBIndexMetadata m_metadata; |
| 82 RefPtr<IDBObjectStore> m_objectStore; | 82 RefPtr<IDBObjectStore> m_objectStore; |
| 83 RefPtr<IDBTransaction> m_transaction; | 83 RefPtr<IDBTransaction> m_transaction; |
| 84 bool m_deleted; | 84 bool m_deleted; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace WebCore | 87 } // namespace WebCore |
| 88 | 88 |
| 89 #endif // IDBIndex_h | 89 #endif // IDBIndex_h |
| OLD | NEW |