| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 static IDBAny* create(DOMStringList* domStringList) | 63 static IDBAny* create(DOMStringList* domStringList) |
| 64 { | 64 { |
| 65 return new IDBAny(domStringList); | 65 return new IDBAny(domStringList); |
| 66 } | 66 } |
| 67 static IDBAny* create(int64_t value) | 67 static IDBAny* create(int64_t value) |
| 68 { | 68 { |
| 69 return new IDBAny(value); | 69 return new IDBAny(value); |
| 70 } | 70 } |
| 71 static IDBAny* create(PassRefPtr<IDBValue> value) | 71 static IDBAny* create(PassRefPtr<IDBValue> value) |
| 72 { | 72 { |
| 73 return new IDBAny(value); | 73 return new IDBAny(std::move(value)); |
| 74 } | 74 } |
| 75 static IDBAny* create(const Vector<RefPtr<IDBValue>>& values) | 75 static IDBAny* create(const Vector<RefPtr<IDBValue>>& values) |
| 76 { | 76 { |
| 77 return new IDBAny(values); | 77 return new IDBAny(values); |
| 78 } | 78 } |
| 79 ~IDBAny(); | 79 ~IDBAny(); |
| 80 DECLARE_TRACE(); | 80 DECLARE_TRACE(); |
| 81 void contextWillBeDestroyed(); | 81 void contextWillBeDestroyed(); |
| 82 | 82 |
| 83 enum Type { | 83 enum Type { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 const Member<IDBObjectStore> m_idbObjectStore; | 130 const Member<IDBObjectStore> m_idbObjectStore; |
| 131 const Member<IDBKey> m_idbKey; | 131 const Member<IDBKey> m_idbKey; |
| 132 const RefPtr<IDBValue> m_idbValue; | 132 const RefPtr<IDBValue> m_idbValue; |
| 133 const Vector<RefPtr<IDBValue>> m_idbValues; | 133 const Vector<RefPtr<IDBValue>> m_idbValues; |
| 134 const int64_t m_integer = 0; | 134 const int64_t m_integer = 0; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace blink | 137 } // namespace blink |
| 138 | 138 |
| 139 #endif // IDBAny_h | 139 #endif // IDBAny_h |
| OLD | NEW |