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

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

Issue 2160163002: [IndexedDB] Propogating Changes to Observer : Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expected tests updated 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/IDBObservation.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp
similarity index 69%
rename from third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.cpp
rename to third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp
index dba64e326ccd0a400aae60a891b95ee00351004a..fa1907d80f5b7d7b8d59e13988b99b00fc159551 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObservation.cpp
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "modules/indexeddb/IDBObserverChangesRecord.h"
+#include "modules/indexeddb/IDBObservation.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptState.h"
@@ -16,14 +16,14 @@
namespace blink {
-IDBObserverChangesRecord::~IDBObserverChangesRecord() {}
+IDBObservation::~IDBObservation() {}
-ScriptValue IDBObserverChangesRecord::key(ScriptState* scriptState)
+ScriptValue IDBObservation::key(ScriptState* scriptState)
{
return ScriptValue::from(scriptState, m_key);
}
-ScriptValue IDBObserverChangesRecord::value(ScriptState* scriptState)
+ScriptValue IDBObservation::value(ScriptState* scriptState)
{
IDBAny* value;
if (!m_value) {
@@ -35,7 +35,7 @@ ScriptValue IDBObserverChangesRecord::value(ScriptState* scriptState)
return scriptValue;
}
-WebIDBOperationType IDBObserverChangesRecord::stringToOperationType(const String& type)
+WebIDBOperationType IDBObservation::stringToOperationType(const String& type)
{
if (type == IndexedDBNames::add)
return WebIDBAdd;
@@ -50,7 +50,7 @@ WebIDBOperationType IDBObserverChangesRecord::stringToOperationType(const String
return WebIDBAdd;
}
-const String& IDBObserverChangesRecord::type() const
+const String& IDBObservation::type() const
{
switch (m_operationType) {
case WebIDBAdd:
@@ -71,19 +71,19 @@ const String& IDBObserverChangesRecord::type() const
}
}
-IDBObserverChangesRecord* IDBObserverChangesRecord::create(IDBKey* key, PassRefPtr<IDBValue> value, WebIDBOperationType type)
+IDBObservation* IDBObservation::create(IDBKey* key, PassRefPtr<IDBValue> value, WebIDBOperationType type)
{
- return new IDBObserverChangesRecord(key, value, type);
+ return new IDBObservation(key, value, type);
}
-IDBObserverChangesRecord::IDBObserverChangesRecord(IDBKey* key, PassRefPtr<IDBValue> value, WebIDBOperationType type)
+IDBObservation::IDBObservation(IDBKey* key, PassRefPtr<IDBValue> value, WebIDBOperationType type)
: m_key(key)
, m_value(value)
, m_operationType(type)
{
}
-DEFINE_TRACE(IDBObserverChangesRecord)
+DEFINE_TRACE(IDBObservation)
{
visitor->trace(m_key);
}

Powered by Google App Engine
This is Rietveld 408576698