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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBVersionChangeEvent.cpp

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some (incomplete) work on struct traits. Created 4 years, 5 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
Index: third_party/WebKit/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBVersionChangeEvent.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
index 710c606cb9a3393e377c4abfc30c27e5f37a2615..3ebe6c13d4fdd18b5ae3db76c92b2ba24267de7b 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBVersionChangeEvent.cpp
@@ -27,14 +27,16 @@
#include "modules/IndexedDBNames.h"
+using indexed_db::mojom::blink::DataLoss;
+
namespace blink {
IDBVersionChangeEvent::IDBVersionChangeEvent()
- : m_dataLoss(WebIDBDataLossNone)
+ : m_dataLoss(DataLoss::None)
{
}
-IDBVersionChangeEvent::IDBVersionChangeEvent(const AtomicString& eventType, unsigned long long oldVersion, const Nullable<unsigned long long>& newVersion, WebIDBDataLoss dataLoss, const String& dataLossMessage)
+IDBVersionChangeEvent::IDBVersionChangeEvent(const AtomicString& eventType, unsigned long long oldVersion, const Nullable<unsigned long long>& newVersion, DataLoss dataLoss, const String& dataLossMessage)
: Event(eventType, false /*canBubble*/, false /*cancelable*/)
, m_oldVersion(oldVersion)
, m_newVersion(newVersion)
@@ -47,12 +49,12 @@ IDBVersionChangeEvent::IDBVersionChangeEvent(const AtomicString& eventType, cons
: Event(eventType, false /*canBubble*/, false /*cancelable*/)
, m_oldVersion(initializer.oldVersion())
, m_newVersion(nullptr)
- , m_dataLoss(WebIDBDataLossNone)
+ , m_dataLoss(DataLoss::None)
{
if (initializer.hasNewVersion())
m_newVersion = initializer.newVersion();
if (initializer.dataLoss() == "total")
- m_dataLoss = WebIDBDataLossTotal;
+ m_dataLoss = DataLoss::Total;
}
unsigned long long IDBVersionChangeEvent::newVersion(bool& isNull) const
@@ -63,7 +65,7 @@ unsigned long long IDBVersionChangeEvent::newVersion(bool& isNull) const
const AtomicString& IDBVersionChangeEvent::dataLoss() const
{
- if (m_dataLoss == WebIDBDataLossTotal)
+ if (m_dataLoss == DataLoss::Total)
return IndexedDBNames::total;
return IndexedDBNames::none;
}

Powered by Google App Engine
This is Rietveld 408576698