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

Unified Diff: third_party/WebKit/public/platform/modules/indexeddb/WebIDBKeyRange.h

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Propogating Changes to Renderer 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/public/platform/modules/indexeddb/WebIDBKeyRange.h
diff --git a/third_party/WebKit/public/platform/modules/indexeddb/WebIDBKeyRange.h b/third_party/WebKit/public/platform/modules/indexeddb/WebIDBKeyRange.h
index 9d9fb8c3d319836081a3e833d5040a274ef12379..7723636abf194f085bd06c5480c320c1aa5b309d 100644
--- a/third_party/WebKit/public/platform/modules/indexeddb/WebIDBKeyRange.h
+++ b/third_party/WebKit/public/platform/modules/indexeddb/WebIDBKeyRange.h
@@ -37,7 +37,7 @@ class WebIDBKey;
class WebIDBKeyRange {
public:
~WebIDBKeyRange() { reset(); }
-
+ WebIDBKeyRange() {}
jsbell 2016/07/11 18:25:33 Nit: leave a blank line.
palakj1 2016/07/11 22:25:40 Done.
WebIDBKeyRange(const WebIDBKeyRange& keyRange) { assign(keyRange); }
WebIDBKeyRange(const WebIDBKey& lower, const WebIDBKey& upper, bool lowerOpen, bool upperOpen) { assign(lower, upper, lowerOpen, upperOpen); }
@@ -48,6 +48,13 @@ public:
BLINK_EXPORT void assign(const WebIDBKeyRange&);
BLINK_EXPORT void assign(const WebIDBKey& lower, const WebIDBKey& upper, bool lowerOpen, bool upperOpen);
+
+ WebIDBKeyRange& operator=(const WebIDBKeyRange& e)
+ {
+ assign(e);
+ return *this;
+ }
+
// FIXME: when compiling core or modules, use inline for reset.
// when compiling WebIDBKeyRange.cpp, don't use inline to avoid redefinition.
#if !BLINK_WEB_IMPLEMENTATION && BLINK_IMPLEMENTATION && defined(COMPONENT_BUILD)

Powered by Google App Engine
This is Rietveld 408576698