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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp

Issue 2031113002: IndexedDB Observers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Observer idl Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "modules/indexeddb/IDBObserver.h"
6
7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
9 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/SerializedScriptValueFactory.h"
11 #include "bindings/modules/v8/ToV8ForModules.h"
12 #include "bindings/modules/v8/V8BindingForModules.h"
13 #include "core/dom/DOMStringList.h"
14 #include "core/dom/ExceptionCode.h"
15 #include "core/dom/ExecutionContext.h"
16 #include "modules/indexeddb/IDBObserverCallback.h"
17 #include "modules/indexeddb/IDBObserverChanges.h"
18 #include "modules/indexeddb/IDBObserverInit.h"
19 #include "platform/SharedBuffer.h"
20 #include <v8.h>
21
22 namespace blink {
23
24 IDBObserver* IDBObserver::create(IDBObserverCallback& callback, const IDBObserve rInit& options)
25 {
26 return new IDBObserver(callback, options);
27 }
28
29 IDBObserver::IDBObserver(IDBObserverCallback& callback, const IDBObserverInit& o ptions)
30 : m_callback(&callback)
31 , m_transaction(options.transaction())
32 , m_values(options.values())
33 , m_noRecords(options.noRecords())
34 {
35 }
36
37 void IDBObserver::observe(IDBDatabase* database, IDBTransaction* transaction, Ex ceptionState& exceptionState)
38 {
39 // to be implemented
dmurph 2016/06/04 00:56:18 nit: remove this, or put: "TODO(palakj): Finish im
palakj1 2016/06/06 19:49:30 Done
40 }
41
42 DEFINE_TRACE(IDBObserver)
43 {
44 visitor->trace(m_callback);
45 }
46
47 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698