| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 return request; | 46 return request; |
| 47 } | 47 } |
| 48 | 48 |
| 49 IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* scriptState, IDBDatabaseCallback
s* callbacks, int64_t transactionId, int64_t version) | 49 IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* scriptState, IDBDatabaseCallback
s* callbacks, int64_t transactionId, int64_t version) |
| 50 : IDBRequest(scriptState, IDBAny::createNull(), 0) | 50 : IDBRequest(scriptState, IDBAny::createNull(), 0) |
| 51 , m_databaseCallbacks(callbacks) | 51 , m_databaseCallbacks(callbacks) |
| 52 , m_transactionId(transactionId) | 52 , m_transactionId(transactionId) |
| 53 , m_version(version) | 53 , m_version(version) |
| 54 { | 54 { |
| 55 ASSERT(!resultAsAny()); | 55 ASSERT(!resultAsAny()); |
| 56 ScriptWrappable::init(this); | |
| 57 } | 56 } |
| 58 | 57 |
| 59 IDBOpenDBRequest::~IDBOpenDBRequest() | 58 IDBOpenDBRequest::~IDBOpenDBRequest() |
| 60 { | 59 { |
| 61 } | 60 } |
| 62 | 61 |
| 63 void IDBOpenDBRequest::trace(Visitor* visitor) | 62 void IDBOpenDBRequest::trace(Visitor* visitor) |
| 64 { | 63 { |
| 65 visitor->trace(m_databaseCallbacks); | 64 visitor->trace(m_databaseCallbacks); |
| 66 IDBRequest::trace(visitor); | 65 IDBRequest::trace(visitor); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 dequeueEvent(event.get()); | 171 dequeueEvent(event.get()); |
| 173 setResult(0); | 172 setResult(0); |
| 174 onError(DOMError::create(AbortError, "The connection was closed.")); | 173 onError(DOMError::create(AbortError, "The connection was closed.")); |
| 175 return false; | 174 return false; |
| 176 } | 175 } |
| 177 | 176 |
| 178 return IDBRequest::dispatchEvent(event); | 177 return IDBRequest::dispatchEvent(event); |
| 179 } | 178 } |
| 180 | 179 |
| 181 } // namespace blink | 180 } // namespace blink |
| OLD | NEW |