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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 : m_type(type) | 53 : m_type(type) |
54 , m_integer(0) | 54 , m_integer(0) |
55 { | 55 { |
56 ASSERT(type == UndefinedType || type == NullType); | 56 ASSERT(type == UndefinedType || type == NullType); |
57 } | 57 } |
58 | 58 |
59 IDBAny::~IDBAny() | 59 IDBAny::~IDBAny() |
60 { | 60 { |
61 } | 61 } |
62 | 62 |
| 63 void IDBAny::contextWillBeDestroyed() |
| 64 { |
| 65 if (m_idbCursor) |
| 66 m_idbCursor->contextWillBeDestroyed(); |
| 67 } |
| 68 |
63 DOMStringList* IDBAny::domStringList() const | 69 DOMStringList* IDBAny::domStringList() const |
64 { | 70 { |
65 ASSERT(m_type == DOMStringListType); | 71 ASSERT(m_type == DOMStringListType); |
66 return m_domStringList.get(); | 72 return m_domStringList.get(); |
67 } | 73 } |
68 | 74 |
69 IDBCursor* IDBAny::idbCursor() const | 75 IDBCursor* IDBAny::idbCursor() const |
70 { | 76 { |
71 ASSERT(m_type == IDBCursorType); | 77 ASSERT(m_type == IDBCursorType); |
72 ASSERT_WITH_SECURITY_IMPLICATION(m_idbCursor->isKeyCursor()); | 78 ASSERT_WITH_SECURITY_IMPLICATION(m_idbCursor->isKeyCursor()); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 { | 219 { |
214 } | 220 } |
215 | 221 |
216 IDBAny::IDBAny(int64_t value) | 222 IDBAny::IDBAny(int64_t value) |
217 : m_type(IntegerType) | 223 : m_type(IntegerType) |
218 , m_integer(value) | 224 , m_integer(value) |
219 { | 225 { |
220 } | 226 } |
221 | 227 |
222 } // namespace WebCore | 228 } // namespace WebCore |
OLD | NEW |