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

Unified Diff: Source/modules/indexeddb/IDBTransaction.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.cpp ('k') | Source/modules/indexeddb/IDBVersionChangeEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBTransaction.cpp
diff --git a/Source/modules/indexeddb/IDBTransaction.cpp b/Source/modules/indexeddb/IDBTransaction.cpp
index 654fb777a8218642db30d48d5645950c6ca8e09d..e739e8c9167d76169da135e7340e2545c3f63c32 100644
--- a/Source/modules/indexeddb/IDBTransaction.cpp
+++ b/Source/modules/indexeddb/IDBTransaction.cpp
@@ -44,7 +44,7 @@ using blink::WebIDBDatabase;
namespace blink {
-IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, const Vector<String>& objectStoreNames, blink::WebIDBTransactionMode mode, IDBDatabase* db)
+IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, const Vector<String>& objectStoreNames, WebIDBTransactionMode mode, IDBDatabase* db)
{
IDBOpenDBRequest* openDBRequest = 0;
IDBTransaction* transaction = adoptRefCountedGarbageCollectedWillBeNoop(new IDBTransaction(context, id, objectStoreNames, mode, db, openDBRequest, IDBDatabaseMetadata()));
@@ -54,12 +54,12 @@ IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, co
IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, IDBDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previousMetadata)
{
- IDBTransaction* transaction = adoptRefCountedGarbageCollectedWillBeNoop(new IDBTransaction(context, id, Vector<String>(), blink::WebIDBTransactionModeVersionChange, db, openDBRequest, previousMetadata));
+ IDBTransaction* transaction = adoptRefCountedGarbageCollectedWillBeNoop(new IDBTransaction(context, id, Vector<String>(), WebIDBTransactionModeVersionChange, db, openDBRequest, previousMetadata));
transaction->suspendIfNeeded();
return transaction;
}
-IDBTransaction::IDBTransaction(ExecutionContext* context, int64_t id, const Vector<String>& objectStoreNames, blink::WebIDBTransactionMode mode, IDBDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previousMetadata)
+IDBTransaction::IDBTransaction(ExecutionContext* context, int64_t id, const Vector<String>& objectStoreNames, WebIDBTransactionMode mode, IDBDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previousMetadata)
: ActiveDOMObject(context)
, m_id(id)
, m_database(db)
@@ -72,7 +72,7 @@ IDBTransaction::IDBTransaction(ExecutionContext* context, int64_t id, const Vect
, m_previousMetadata(previousMetadata)
{
ScriptWrappable::init(this);
- if (mode == blink::WebIDBTransactionModeVersionChange) {
+ if (mode == WebIDBTransactionModeVersionChange) {
// Not active until the callback.
m_state = Inactive;
}
@@ -277,27 +277,27 @@ bool IDBTransaction::hasPendingActivity() const
return m_hasPendingActivity && !m_contextStopped;
}
-blink::WebIDBTransactionMode IDBTransaction::stringToMode(const String& modeString, ExceptionState& exceptionState)
+WebIDBTransactionMode IDBTransaction::stringToMode(const String& modeString, ExceptionState& exceptionState)
{
if (modeString == IndexedDBNames::readonly)
- return blink::WebIDBTransactionModeReadOnly;
+ return WebIDBTransactionModeReadOnly;
if (modeString == IndexedDBNames::readwrite)
- return blink::WebIDBTransactionModeReadWrite;
+ return WebIDBTransactionModeReadWrite;
exceptionState.throwTypeError("The mode provided ('" + modeString + "') is not one of 'readonly' or 'readwrite'.");
- return blink::WebIDBTransactionModeReadOnly;
+ return WebIDBTransactionModeReadOnly;
}
const String& IDBTransaction::mode() const
{
switch (m_mode) {
- case blink::WebIDBTransactionModeReadOnly:
+ case WebIDBTransactionModeReadOnly:
return IndexedDBNames::readonly;
- case blink::WebIDBTransactionModeReadWrite:
+ case WebIDBTransactionModeReadWrite:
return IndexedDBNames::readwrite;
- case blink::WebIDBTransactionModeVersionChange:
+ case WebIDBTransactionModeVersionChange:
return IndexedDBNames::versionchange;
}
@@ -374,7 +374,7 @@ void IDBTransaction::enqueueEvent(PassRefPtrWillBeRawPtr<Event> event)
eventQueue->enqueueEvent(event);
}
-blink::WebIDBDatabase* IDBTransaction::backendDB() const
+WebIDBDatabase* IDBTransaction::backendDB() const
{
return m_database->backend();
}
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.cpp ('k') | Source/modules/indexeddb/IDBVersionChangeEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698