| 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 IDBOpenDBRequest* request = | 46 IDBOpenDBRequest* request = |
| 47 new IDBOpenDBRequest(script_state, callbacks, transaction_id, version); | 47 new IDBOpenDBRequest(script_state, callbacks, transaction_id, version); |
| 48 request->SuspendIfNeeded(); | 48 request->SuspendIfNeeded(); |
| 49 return request; | 49 return request; |
| 50 } | 50 } |
| 51 | 51 |
| 52 IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* script_state, | 52 IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* script_state, |
| 53 IDBDatabaseCallbacks* callbacks, | 53 IDBDatabaseCallbacks* callbacks, |
| 54 int64_t transaction_id, | 54 int64_t transaction_id, |
| 55 int64_t version) | 55 int64_t version) |
| 56 : IDBRequest(script_state, IDBAny::CreateNull(), nullptr), | 56 : IDBRequest(script_state, IDBAny::CreateNull(), nullptr, nullptr), |
| 57 database_callbacks_(callbacks), | 57 database_callbacks_(callbacks), |
| 58 transaction_id_(transaction_id), | 58 transaction_id_(transaction_id), |
| 59 version_(version) { | 59 version_(version) { |
| 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(database_callbacks_); | 66 visitor->Trace(database_callbacks_); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 SetResult(nullptr); | 182 SetResult(nullptr); |
| 183 EnqueueResponse( | 183 EnqueueResponse( |
| 184 DOMException::Create(kAbortError, "The connection was closed.")); | 184 DOMException::Create(kAbortError, "The connection was closed.")); |
| 185 return DispatchEventResult::kCanceledBeforeDispatch; | 185 return DispatchEventResult::kCanceledBeforeDispatch; |
| 186 } | 186 } |
| 187 | 187 |
| 188 return IDBRequest::DispatchEventInternal(event); | 188 return IDBRequest::DispatchEventInternal(event); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace blink | 191 } // namespace blink |
| OLD | NEW |