Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.cpp

Issue 2890023003: [IndexedDB] Adding async tracing for renderer calls. (Closed)
Patch Set: fixed blink tests Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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,
57 IDBAny::CreateNull(),
58 nullptr,
59 IDBRequest::AsyncTraceState()),
57 database_callbacks_(callbacks), 60 database_callbacks_(callbacks),
58 transaction_id_(transaction_id), 61 transaction_id_(transaction_id),
59 version_(version) { 62 version_(version) {
60 DCHECK(!ResultAsAny()); 63 DCHECK(!ResultAsAny());
61 } 64 }
62 65
63 IDBOpenDBRequest::~IDBOpenDBRequest() {} 66 IDBOpenDBRequest::~IDBOpenDBRequest() {}
64 67
65 DEFINE_TRACE(IDBOpenDBRequest) { 68 DEFINE_TRACE(IDBOpenDBRequest) {
66 visitor->Trace(database_callbacks_); 69 visitor->Trace(database_callbacks_);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 SetResult(nullptr); 185 SetResult(nullptr);
183 HandleResponse( 186 HandleResponse(
184 DOMException::Create(kAbortError, "The connection was closed.")); 187 DOMException::Create(kAbortError, "The connection was closed."));
185 return DispatchEventResult::kCanceledBeforeDispatch; 188 return DispatchEventResult::kCanceledBeforeDispatch;
186 } 189 }
187 190
188 return IDBRequest::DispatchEventInternal(event); 191 return IDBRequest::DispatchEventInternal(event);
189 } 192 }
190 193
191 } // namespace blink 194 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698