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

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

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Options constrcutor modified 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.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.h b/third_party/WebKit/Source/modules/indexeddb/IDBObservation.h
similarity index 62%
rename from third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.h
rename to third_party/WebKit/Source/modules/indexeddb/IDBObservation.h
index 329815214565f2b068f8d36072d8dffa0e6423f8..95d64a90fcec5970105ee2e8ea19d1eee4590c05 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChangesRecord.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObservation.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.+
-#ifndef IDBObserverChangesRecord_h
-#define IDBObserverChangesRecord_h
+#ifndef IDBObservation_h
+#define IDBObservation_h
#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/ScriptWrappable.h"
@@ -13,17 +13,18 @@
namespace blink {
-class IDBKey;
+class IDBKeyRange;
class IDBValue;
class ScriptState;
+struct WebIDBObservation;
-class IDBObserverChangesRecord final : public GarbageCollectedFinalized<IDBObserverChangesRecord>, public ScriptWrappable {
+class IDBObservation final : public GarbageCollectedFinalized<IDBObservation>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
static WebIDBOperationType stringToOperationType(const String&);
- static IDBObserverChangesRecord* create(IDBKey*, PassRefPtr<IDBValue>, WebIDBOperationType);
- ~IDBObserverChangesRecord();
+ static IDBObservation* create(const WebIDBObservation&);
+ ~IDBObservation();
DECLARE_TRACE();
@@ -33,12 +34,12 @@ public:
const String& type() const;
private:
- IDBObserverChangesRecord(IDBKey*, PassRefPtr<IDBValue>, WebIDBOperationType);
- Member<IDBKey> m_key;
+ IDBObservation(const WebIDBObservation&);
+ Member<IDBKeyRange> m_keyRange;
RefPtr<IDBValue> m_value;
const WebIDBOperationType m_operationType;
};
} // namespace blink
-#endif // IDBObserverChangesRecord_h
+#endif // IDBObservation_h

Powered by Google App Engine
This is Rietveld 408576698