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

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

Issue 1166553004: IndexedDB: Replace 0 with nullptr where appropriate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: MOAR Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | Source/modules/indexeddb/IDBRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
39 namespace blink { 39 namespace blink {
40 40
41 IDBOpenDBRequest* IDBOpenDBRequest::create(ScriptState* scriptState, IDBDatabase Callbacks* callbacks, int64_t transactionId, int64_t version) 41 IDBOpenDBRequest* IDBOpenDBRequest::create(ScriptState* scriptState, IDBDatabase Callbacks* callbacks, int64_t transactionId, int64_t version)
42 { 42 {
43 IDBOpenDBRequest* request = new IDBOpenDBRequest(scriptState, callbacks, tra nsactionId, version); 43 IDBOpenDBRequest* request = new IDBOpenDBRequest(scriptState, callbacks, tra nsactionId, version);
44 request->suspendIfNeeded(); 44 request->suspendIfNeeded();
45 return request; 45 return request;
46 } 46 }
47 47
48 IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* scriptState, IDBDatabaseCallback s* callbacks, int64_t transactionId, int64_t version) 48 IDBOpenDBRequest::IDBOpenDBRequest(ScriptState* scriptState, IDBDatabaseCallback s* callbacks, int64_t transactionId, int64_t version)
49 : IDBRequest(scriptState, IDBAny::createNull(), 0) 49 : IDBRequest(scriptState, IDBAny::createNull(), nullptr)
50 , m_databaseCallbacks(callbacks) 50 , m_databaseCallbacks(callbacks)
51 , m_transactionId(transactionId) 51 , m_transactionId(transactionId)
52 , m_version(version) 52 , m_version(version)
53 { 53 {
54 ASSERT(!resultAsAny()); 54 ASSERT(!resultAsAny());
55 } 55 }
56 56
57 IDBOpenDBRequest::~IDBOpenDBRequest() 57 IDBOpenDBRequest::~IDBOpenDBRequest()
58 { 58 {
59 } 59 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 dequeueEvent(event.get()); 170 dequeueEvent(event.get());
171 setResult(nullptr); 171 setResult(nullptr);
172 onError(DOMError::create(AbortError, "The connection was closed.")); 172 onError(DOMError::create(AbortError, "The connection was closed."));
173 return false; 173 return false;
174 } 174 }
175 175
176 return IDBRequest::dispatchEvent(event); 176 return IDBRequest::dispatchEvent(event);
177 } 177 }
178 178
179 } // namespace blink 179 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | Source/modules/indexeddb/IDBRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698