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 28 matching lines...) Expand all Loading... |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class ExceptionState; | 41 class ExceptionState; |
42 class IDBAny; | 42 class IDBAny; |
43 class IDBTransaction; | 43 class IDBTransaction; |
44 class ExecutionContext; | 44 class ExecutionContext; |
45 class SharedBuffer; | 45 class SharedBuffer; |
46 class WebBlobInfo; | 46 class WebBlobInfo; |
47 | 47 |
48 class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap
pable { | 48 class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap
pable { |
| 49 DEFINE_WRAPPERTYPEINFO(); |
49 public: | 50 public: |
50 static WebIDBCursorDirection stringToDirection(const String& modeString, Exc
eptionState&); | 51 static WebIDBCursorDirection stringToDirection(const String& modeString, Exc
eptionState&); |
51 | 52 |
52 static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, ID
BRequest*, IDBAny* source, IDBTransaction*); | 53 static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, ID
BRequest*, IDBAny* source, IDBTransaction*); |
53 virtual ~IDBCursor(); | 54 virtual ~IDBCursor(); |
54 void trace(Visitor*); | 55 void trace(Visitor*); |
55 void contextWillBeDestroyed() { m_backend.clear(); } | 56 void contextWillBeDestroyed() { m_backend.clear(); } |
56 | 57 |
57 // Implement the IDL | 58 // Implement the IDL |
58 const String& direction() const; | 59 const String& direction() const; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 bool m_valueDirty; | 100 bool m_valueDirty; |
100 Member<IDBKey> m_key; | 101 Member<IDBKey> m_key; |
101 Member<IDBKey> m_primaryKey; | 102 Member<IDBKey> m_primaryKey; |
102 RefPtr<SharedBuffer> m_value; | 103 RefPtr<SharedBuffer> m_value; |
103 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; | 104 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; |
104 }; | 105 }; |
105 | 106 |
106 } // namespace blink | 107 } // namespace blink |
107 | 108 |
108 #endif // IDBCursor_h | 109 #endif // IDBCursor_h |
OLD | NEW |