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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 ASSERT(m_type == IDBCursorType); | 74 ASSERT(m_type == IDBCursorType); |
75 return m_idbCursor; | 75 return m_idbCursor; |
76 } | 76 } |
77 | 77 |
78 PassRefPtr<IDBCursorWithValue> IDBAny::idbCursorWithValue() | 78 PassRefPtr<IDBCursorWithValue> IDBAny::idbCursorWithValue() |
79 { | 79 { |
80 ASSERT(m_type == IDBCursorWithValueType); | 80 ASSERT(m_type == IDBCursorWithValueType); |
81 return m_idbCursorWithValue; | 81 return m_idbCursorWithValue; |
82 } | 82 } |
83 | 83 |
84 PassRefPtr<IDBDatabase> IDBAny::idbDatabase() | 84 IDBDatabase* IDBAny::idbDatabase() |
85 { | 85 { |
86 ASSERT(m_type == IDBDatabaseType); | 86 ASSERT(m_type == IDBDatabaseType); |
87 return m_idbDatabase; | 87 return m_idbDatabase; |
88 } | 88 } |
89 | 89 |
90 IDBFactory* IDBAny::idbFactory() | 90 IDBFactory* IDBAny::idbFactory() |
91 { | 91 { |
92 ASSERT(m_type == IDBFactoryType); | 92 ASSERT(m_type == IDBFactoryType); |
93 return m_idbFactory.raw(); | 93 return m_idbFactory.raw(); |
94 } | 94 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 } | 146 } |
147 | 147 |
148 IDBAny::IDBAny(PassRefPtr<IDBCursor> value) | 148 IDBAny::IDBAny(PassRefPtr<IDBCursor> value) |
149 : m_type(IDBCursorType) | 149 : m_type(IDBCursorType) |
150 , m_idbCursor(value) | 150 , m_idbCursor(value) |
151 , m_integer(0) | 151 , m_integer(0) |
152 { | 152 { |
153 ScriptWrappable::init(this); | 153 ScriptWrappable::init(this); |
154 } | 154 } |
155 | 155 |
156 IDBAny::IDBAny(PassRefPtr<IDBDatabase> value) | 156 IDBAny::IDBAny(IDBDatabase* value) |
157 : m_type(IDBDatabaseType) | 157 : m_type(IDBDatabaseType) |
158 , m_idbDatabase(value) | 158 , m_idbDatabase(value) |
159 , m_integer(0) | 159 , m_integer(0) |
160 { | 160 { |
161 ScriptWrappable::init(this); | 161 ScriptWrappable::init(this); |
162 } | 162 } |
163 | 163 |
164 IDBAny::IDBAny(IDBFactory* value) | 164 IDBAny::IDBAny(IDBFactory* value) |
165 : m_type(IDBFactoryType) | 165 : m_type(IDBFactoryType) |
166 , m_idbFactory(value) | 166 , m_idbFactory(value) |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 } | 218 } |
219 | 219 |
220 IDBAny::IDBAny(int64_t value) | 220 IDBAny::IDBAny(int64_t value) |
221 : m_type(IntegerType) | 221 : m_type(IntegerType) |
222 , m_integer(value) | 222 , m_integer(value) |
223 { | 223 { |
224 ScriptWrappable::init(this); | 224 ScriptWrappable::init(this); |
225 } | 225 } |
226 | 226 |
227 } // namespace WebCore | 227 } // namespace WebCore |
OLD | NEW |