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

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

Issue 464353002: Cleanup blink:: prefix usage in Source/core/modules/[battery/*.cpp to indexeddb/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 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
« 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 void IDBOpenDBRequest::onBlocked(int64_t oldVersion) 74 void IDBOpenDBRequest::onBlocked(int64_t oldVersion)
75 { 75 {
76 IDB_TRACE("IDBOpenDBRequest::onBlocked()"); 76 IDB_TRACE("IDBOpenDBRequest::onBlocked()");
77 if (!shouldEnqueueEvent()) 77 if (!shouldEnqueueEvent())
78 return; 78 return;
79 Nullable<unsigned long long> newVersionNullable = (m_version == IDBDatabaseM etadata::DefaultIntVersion) ? Nullable<unsigned long long>() : Nullable<unsigned long long>(m_version); 79 Nullable<unsigned long long> newVersionNullable = (m_version == IDBDatabaseM etadata::DefaultIntVersion) ? Nullable<unsigned long long>() : Nullable<unsigned long long>(m_version);
80 enqueueEvent(IDBVersionChangeEvent::create(EventTypeNames::blocked, oldVersi on, newVersionNullable)); 80 enqueueEvent(IDBVersionChangeEvent::create(EventTypeNames::blocked, oldVersi on, newVersionNullable));
81 } 81 }
82 82
83 void IDBOpenDBRequest::onUpgradeNeeded(int64_t oldVersion, PassOwnPtr<WebIDBData base> backend, const IDBDatabaseMetadata& metadata, blink::WebIDBDataLoss dataLo ss, String dataLossMessage) 83 void IDBOpenDBRequest::onUpgradeNeeded(int64_t oldVersion, PassOwnPtr<WebIDBData base> backend, const IDBDatabaseMetadata& metadata, WebIDBDataLoss dataLoss, Str ing dataLossMessage)
84 { 84 {
85 IDB_TRACE("IDBOpenDBRequest::onUpgradeNeeded()"); 85 IDB_TRACE("IDBOpenDBRequest::onUpgradeNeeded()");
86 if (m_contextStopped || !executionContext()) { 86 if (m_contextStopped || !executionContext()) {
87 OwnPtr<WebIDBDatabase> db = backend; 87 OwnPtr<WebIDBDatabase> db = backend;
88 db->abort(m_transactionId); 88 db->abort(m_transactionId);
89 db->close(); 89 db->close();
90 return; 90 return;
91 } 91 }
92 if (!shouldEnqueueEvent()) 92 if (!shouldEnqueueEvent())
93 return; 93 return;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 dequeueEvent(event.get()); 172 dequeueEvent(event.get());
173 setResult(0); 173 setResult(0);
174 onError(DOMError::create(AbortError, "The connection was closed.")); 174 onError(DOMError::create(AbortError, "The connection was closed."));
175 return false; 175 return false;
176 } 176 }
177 177
178 return IDBRequest::dispatchEvent(event); 178 return IDBRequest::dispatchEvent(event);
179 } 179 }
180 180
181 } // namespace blink 181 } // 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