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 20 matching lines...) Expand all Loading... |
31 #include "modules/indexeddb/IDBKeyPath.h" | 31 #include "modules/indexeddb/IDBKeyPath.h" |
32 #include "modules/indexeddb/IDBKeyRange.h" | 32 #include "modules/indexeddb/IDBKeyRange.h" |
33 #include "modules/indexeddb/IDBMetadata.h" | 33 #include "modules/indexeddb/IDBMetadata.h" |
34 #include "modules/indexeddb/IDBRequest.h" | 34 #include "modules/indexeddb/IDBRequest.h" |
35 #include "public/platform/WebIDBCursor.h" | 35 #include "public/platform/WebIDBCursor.h" |
36 #include "public/platform/WebIDBDatabase.h" | 36 #include "public/platform/WebIDBDatabase.h" |
37 #include "public/platform/WebIDBTypes.h" | 37 #include "public/platform/WebIDBTypes.h" |
38 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace blink { |
42 | 42 |
43 class ExceptionState; | 43 class ExceptionState; |
44 class IDBObjectStore; | 44 class IDBObjectStore; |
45 | 45 |
46 class IDBIndex : public GarbageCollectedFinalized<IDBIndex>, public ScriptWrappa
ble { | 46 class IDBIndex : public GarbageCollectedFinalized<IDBIndex>, public ScriptWrappa
ble { |
47 public: | 47 public: |
48 static IDBIndex* create(const IDBIndexMetadata& metadata, IDBObjectStore* ob
jectStore, IDBTransaction* transaction) | 48 static IDBIndex* create(const IDBIndexMetadata& metadata, IDBObjectStore* ob
jectStore, IDBTransaction* transaction) |
49 { | 49 { |
50 return new IDBIndex(metadata, objectStore, transaction); | 50 return new IDBIndex(metadata, objectStore, transaction); |
51 } | 51 } |
(...skipping 25 matching lines...) Expand all Loading... |
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 WebCore | 87 } // namespace blink |
88 | 88 |
89 #endif // IDBIndex_h | 89 #endif // IDBIndex_h |
OLD | NEW |