| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 static PassRefPtr<IDBAny> create(int64_t value) | 69 static PassRefPtr<IDBAny> create(int64_t value) |
| 70 { | 70 { |
| 71 return adoptRef(new IDBAny(value)); | 71 return adoptRef(new IDBAny(value)); |
| 72 } | 72 } |
| 73 static PassRefPtr<IDBAny> create(PassRefPtr<SharedBuffer> value, PassRefPtr<
IDBKey> key, const IDBKeyPath& keyPath) | 73 static PassRefPtr<IDBAny> create(PassRefPtr<SharedBuffer> value, PassRefPtr<
IDBKey> key, const IDBKeyPath& keyPath) |
| 74 { | 74 { |
| 75 return adoptRef(new IDBAny(value, key, keyPath)); | 75 return adoptRef(new IDBAny(value, key, keyPath)); |
| 76 } | 76 } |
| 77 ~IDBAny(); | 77 ~IDBAny(); |
| 78 void contextWillBeDestroyed(); |
| 78 | 79 |
| 79 enum Type { | 80 enum Type { |
| 80 UndefinedType = 0, | 81 UndefinedType = 0, |
| 81 NullType, | 82 NullType, |
| 82 DOMStringListType, | 83 DOMStringListType, |
| 83 IDBCursorType, | 84 IDBCursorType, |
| 84 IDBCursorWithValueType, | 85 IDBCursorWithValueType, |
| 85 IDBDatabaseType, | 86 IDBDatabaseType, |
| 86 IDBIndexType, | 87 IDBIndexType, |
| 87 IDBObjectStoreType, | 88 IDBObjectStoreType, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 const RefPtr<IDBKey> m_idbKey; | 137 const RefPtr<IDBKey> m_idbKey; |
| 137 const IDBKeyPath m_idbKeyPath; | 138 const IDBKeyPath m_idbKeyPath; |
| 138 const RefPtr<SharedBuffer> m_buffer; | 139 const RefPtr<SharedBuffer> m_buffer; |
| 139 const String m_string; | 140 const String m_string; |
| 140 const int64_t m_integer; | 141 const int64_t m_integer; |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 } // namespace WebCore | 144 } // namespace WebCore |
| 144 | 145 |
| 145 #endif // IDBAny_h | 146 #endif // IDBAny_h |
| OLD | NEW |