| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 IDBTransaction* idbTransaction() const; | 117 IDBTransaction* idbTransaction() const; |
| 118 SharedBuffer* buffer() const; | 118 SharedBuffer* buffer() const; |
| 119 const Vector<blink::WebBlobInfo>* blobInfo() const; | 119 const Vector<blink::WebBlobInfo>* blobInfo() const; |
| 120 int64_t integer() const; | 120 int64_t integer() const; |
| 121 const String& string() const; | 121 const String& string() const; |
| 122 const IDBKey* key() const; | 122 const IDBKey* key() const; |
| 123 const IDBKeyPath& keyPath() const; | 123 const IDBKeyPath& keyPath() const; |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 explicit IDBAny(Type); | 126 explicit IDBAny(Type); |
| 127 explicit IDBAny(PassRefPtr<DOMStringList>); | 127 explicit IDBAny(PassRefPtrWillBeRawPtr<DOMStringList>); |
| 128 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBCursor>); | 128 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBCursor>); |
| 129 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBDatabase>); | 129 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBDatabase>); |
| 130 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBIndex>); | 130 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBIndex>); |
| 131 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBObjectStore>); | 131 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBObjectStore>); |
| 132 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBTransaction>); | 132 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBTransaction>); |
| 133 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBKey>); | 133 explicit IDBAny(PassRefPtrWillBeRawPtr<IDBKey>); |
| 134 explicit IDBAny(const IDBKeyPath&); | 134 explicit IDBAny(const IDBKeyPath&); |
| 135 explicit IDBAny(const String&); | 135 explicit IDBAny(const String&); |
| 136 IDBAny(PassRefPtr<SharedBuffer>, const Vector<blink::WebBlobInfo>*); | 136 IDBAny(PassRefPtr<SharedBuffer>, const Vector<blink::WebBlobInfo>*); |
| 137 IDBAny(PassRefPtr<SharedBuffer>, const Vector<blink::WebBlobInfo>*, PassRefP
trWillBeRawPtr<IDBKey>, const IDBKeyPath&); | 137 IDBAny(PassRefPtr<SharedBuffer>, const Vector<blink::WebBlobInfo>*, PassRefP
trWillBeRawPtr<IDBKey>, const IDBKeyPath&); |
| 138 explicit IDBAny(int64_t); | 138 explicit IDBAny(int64_t); |
| 139 | 139 |
| 140 const Type m_type; | 140 const Type m_type; |
| 141 | 141 |
| 142 // Only one of the following should ever be in use at any given time, except
that BufferType uses two and BufferKeyAndKeyPathType uses four. | 142 // Only one of the following should ever be in use at any given time, except
that BufferType uses two and BufferKeyAndKeyPathType uses four. |
| 143 const RefPtr<DOMStringList> m_domStringList; | 143 const RefPtrWillBeMember<DOMStringList> m_domStringList; |
| 144 const RefPtrWillBeMember<IDBCursor> m_idbCursor; | 144 const RefPtrWillBeMember<IDBCursor> m_idbCursor; |
| 145 const RefPtrWillBeMember<IDBDatabase> m_idbDatabase; | 145 const RefPtrWillBeMember<IDBDatabase> m_idbDatabase; |
| 146 const RefPtrWillBeMember<IDBIndex> m_idbIndex; | 146 const RefPtrWillBeMember<IDBIndex> m_idbIndex; |
| 147 const RefPtrWillBeMember<IDBObjectStore> m_idbObjectStore; | 147 const RefPtrWillBeMember<IDBObjectStore> m_idbObjectStore; |
| 148 const RefPtrWillBeMember<IDBTransaction> m_idbTransaction; | 148 const RefPtrWillBeMember<IDBTransaction> m_idbTransaction; |
| 149 const RefPtrWillBeMember<IDBKey> m_idbKey; | 149 const RefPtrWillBeMember<IDBKey> m_idbKey; |
| 150 const IDBKeyPath m_idbKeyPath; | 150 const IDBKeyPath m_idbKeyPath; |
| 151 const RefPtr<SharedBuffer> m_buffer; | 151 const RefPtr<SharedBuffer> m_buffer; |
| 152 const Vector<blink::WebBlobInfo>* m_blobInfo; | 152 const Vector<blink::WebBlobInfo>* m_blobInfo; |
| 153 const String m_string; | 153 const String m_string; |
| 154 const int64_t m_integer; | 154 const int64_t m_integer; |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace WebCore | 157 } // namespace WebCore |
| 158 | 158 |
| 159 #endif // IDBAny_h | 159 #endif // IDBAny_h |
| OLD | NEW |