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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/V8IDBObserverCallback.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8IDBObserverCallback_h 5 #ifndef V8IDBObserverCallback_h
6 #define V8IDBObserverCallback_h 6 #define V8IDBObserverCallback_h
7 7
8 #include "bindings/core/v8/ActiveDOMCallback.h" 8 #include "bindings/core/v8/ActiveDOMCallback.h"
9 #include "bindings/core/v8/DOMWrapperWorld.h" 9 #include "bindings/core/v8/DOMWrapperWorld.h"
10 #include "bindings/core/v8/ScopedPersistent.h" 10 #include "bindings/core/v8/ScopedPersistent.h"
11 #include "modules/indexeddb/IDBObserverCallback.h" 11 #include "modules/indexeddb/IDBObserverCallback.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class V8IDBObserverCallback final : public IDBObserverCallback, public ActiveDOM Callback { 15 class V8IDBObserverCallback final : public IDBObserverCallback, public ActiveDOM Callback {
16 USING_GARBAGE_COLLECTED_MIXIN(V8IDBObserverCallback); 16 USING_GARBAGE_COLLECTED_MIXIN(V8IDBObserverCallback);
17 17
18 public: 18 public:
19 V8IDBObserverCallback(v8::Local<v8::Function>, v8::Local<v8::Object>, Script State*); 19 V8IDBObserverCallback(v8::Local<v8::Function>, v8::Local<v8::Object>, Script State*);
20 ~V8IDBObserverCallback() override; 20 ~V8IDBObserverCallback() override;
21 21
22 DECLARE_VIRTUAL_TRACE(); 22 DECLARE_VIRTUAL_TRACE();
23 23
24 void handleEvent(IDBObserverChanges&, IDBObserver&) override;
24 ExecutionContext* getExecutionContext() const override { return ContextLifec ycleObserver::getExecutionContext(); } 25 ExecutionContext* getExecutionContext() const override { return ContextLifec ycleObserver::getExecutionContext(); }
25 private: 26 private:
26 ScopedPersistent<v8::Function> m_callback; 27 ScopedPersistent<v8::Function> m_callback;
27 RefPtr<ScriptState> m_scriptState; 28 RefPtr<ScriptState> m_scriptState;
28 }; 29 };
29 30
30 } // namespace blink 31 } // namespace blink
31 #endif // V8IDBObserverCallback_h 32 #endif // V8IDBObserverCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698