| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 DCHECK(!resultAsAny()); | 60 DCHECK(!resultAsAny()); |
| 61 } | 61 } |
| 62 | 62 |
| 63 IDBOpenDBRequest::~IDBOpenDBRequest() {} | 63 IDBOpenDBRequest::~IDBOpenDBRequest() {} |
| 64 | 64 |
| 65 DEFINE_TRACE(IDBOpenDBRequest) { | 65 DEFINE_TRACE(IDBOpenDBRequest) { |
| 66 visitor->trace(m_databaseCallbacks); | 66 visitor->trace(m_databaseCallbacks); |
| 67 IDBRequest::trace(visitor); | 67 IDBRequest::trace(visitor); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void IDBOpenDBRequest::contextDestroyed() { | 70 void IDBOpenDBRequest::contextDestroyed(ExecutionContext* destroyedContext) { |
| 71 IDBRequest::contextDestroyed(); | 71 IDBRequest::contextDestroyed(destroyedContext); |
| 72 if (m_databaseCallbacks) | 72 if (m_databaseCallbacks) |
| 73 m_databaseCallbacks->detachWebCallbacks(); | 73 m_databaseCallbacks->detachWebCallbacks(); |
| 74 } | 74 } |
| 75 | 75 |
| 76 const AtomicString& IDBOpenDBRequest::interfaceName() const { | 76 const AtomicString& IDBOpenDBRequest::interfaceName() const { |
| 77 return EventTargetNames::IDBOpenDBRequest; | 77 return EventTargetNames::IDBOpenDBRequest; |
| 78 } | 78 } |
| 79 | 79 |
| 80 void IDBOpenDBRequest::onBlocked(int64_t oldVersion) { | 80 void IDBOpenDBRequest::onBlocked(int64_t oldVersion) { |
| 81 IDB_TRACE("IDBOpenDBRequest::onBlocked()"); | 81 IDB_TRACE("IDBOpenDBRequest::onBlocked()"); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 dequeueEvent(event); | 178 dequeueEvent(event); |
| 179 setResult(nullptr); | 179 setResult(nullptr); |
| 180 onError(DOMException::create(AbortError, "The connection was closed.")); | 180 onError(DOMException::create(AbortError, "The connection was closed.")); |
| 181 return DispatchEventResult::CanceledBeforeDispatch; | 181 return DispatchEventResult::CanceledBeforeDispatch; |
| 182 } | 182 } |
| 183 | 183 |
| 184 return IDBRequest::dispatchEventInternal(event); | 184 return IDBRequest::dispatchEventInternal(event); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace blink | 187 } // namespace blink |
| OLD | NEW |