| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 : m_type(type) | 55 : m_type(type) |
| 56 , m_integer(0) | 56 , m_integer(0) |
| 57 { | 57 { |
| 58 ASSERT(type == UndefinedType || type == NullType); | 58 ASSERT(type == UndefinedType || type == NullType); |
| 59 } | 59 } |
| 60 | 60 |
| 61 IDBAny::~IDBAny() | 61 IDBAny::~IDBAny() |
| 62 { | 62 { |
| 63 } | 63 } |
| 64 | 64 |
| 65 PassRefPtr<DOMStringList> IDBAny::domStringList() | 65 DOMStringList* IDBAny::domStringList() |
| 66 { | 66 { |
| 67 ASSERT(m_type == DOMStringListType); | 67 ASSERT(m_type == DOMStringListType); |
| 68 return m_domStringList; | 68 return m_domStringList.get(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 PassRefPtr<IDBCursor> IDBAny::idbCursor() | 71 IDBCursor* IDBAny::idbCursor() |
| 72 { | 72 { |
| 73 ASSERT(m_type == IDBCursorType); | 73 ASSERT(m_type == IDBCursorType); |
| 74 return m_idbCursor; | 74 return m_idbCursor.get(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 PassRefPtr<IDBCursorWithValue> IDBAny::idbCursorWithValue() | 77 IDBCursorWithValue* IDBAny::idbCursorWithValue() |
| 78 { | 78 { |
| 79 ASSERT(m_type == IDBCursorWithValueType); | 79 ASSERT(m_type == IDBCursorWithValueType); |
| 80 return m_idbCursorWithValue; | 80 return m_idbCursorWithValue.get(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 PassRefPtr<IDBDatabase> IDBAny::idbDatabase() | 83 IDBDatabase* IDBAny::idbDatabase() |
| 84 { | 84 { |
| 85 ASSERT(m_type == IDBDatabaseType); | 85 ASSERT(m_type == IDBDatabaseType); |
| 86 return m_idbDatabase; | 86 return m_idbDatabase.get(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 PassRefPtr<IDBFactory> IDBAny::idbFactory() | 89 IDBFactory* IDBAny::idbFactory() |
| 90 { | 90 { |
| 91 ASSERT(m_type == IDBFactoryType); | 91 ASSERT(m_type == IDBFactoryType); |
| 92 return m_idbFactory; | 92 return m_idbFactory.get(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 PassRefPtr<IDBIndex> IDBAny::idbIndex() | 95 IDBIndex* IDBAny::idbIndex() |
| 96 { | 96 { |
| 97 ASSERT(m_type == IDBIndexType); | 97 ASSERT(m_type == IDBIndexType); |
| 98 return m_idbIndex; | 98 return m_idbIndex.get(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 PassRefPtr<IDBObjectStore> IDBAny::idbObjectStore() | 101 IDBObjectStore* IDBAny::idbObjectStore() |
| 102 { | 102 { |
| 103 ASSERT(m_type == IDBObjectStoreType); | 103 ASSERT(m_type == IDBObjectStoreType); |
| 104 return m_idbObjectStore; | 104 return m_idbObjectStore.get(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 PassRefPtr<IDBTransaction> IDBAny::idbTransaction() | 107 IDBTransaction* IDBAny::idbTransaction() |
| 108 { | 108 { |
| 109 ASSERT(m_type == IDBTransactionType); | 109 ASSERT(m_type == IDBTransactionType); |
| 110 return m_idbTransaction; | 110 return m_idbTransaction.get(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 const ScriptValue& IDBAny::scriptValue() | 113 const ScriptValue& IDBAny::scriptValue() |
| 114 { | 114 { |
| 115 ASSERT(m_type == ScriptValueType); | 115 ASSERT(m_type == ScriptValueType); |
| 116 return m_scriptValue; | 116 return m_scriptValue; |
| 117 } | 117 } |
| 118 | 118 |
| 119 const String& IDBAny::string() | 119 const String& IDBAny::string() |
| 120 { | 120 { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 { | 205 { |
| 206 } | 206 } |
| 207 | 207 |
| 208 IDBAny::IDBAny(int64_t value) | 208 IDBAny::IDBAny(int64_t value) |
| 209 : m_type(IntegerType) | 209 : m_type(IntegerType) |
| 210 , m_integer(value) | 210 , m_integer(value) |
| 211 { | 211 { |
| 212 } | 212 } |
| 213 | 213 |
| 214 } // namespace WebCore | 214 } // namespace WebCore |
| OLD | NEW |