Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 #ifndef V8IDBObserverCallback_h | |
| 6 #define V8IDBObserverCallback_h | |
| 7 | |
| 8 #include "bindings/core/v8/ActiveDOMCallback.h" | |
| 9 #include "bindings/core/v8/DOMWrapperWorld.h" | |
| 10 #include "bindings/core/v8/ScopedPersistent.h" | |
| 11 #include "core/CoreExport.h" | |
| 12 #include "modules/indexeddb/IDBObserverCallback.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 class V8IDBObserverCallback final : public IDBObserverCallback, public ActiveDOM Callback { | |
| 17 USING_GARBAGE_COLLECTED_MIXIN(V8IDBObserverCallback); | |
| 18 | |
| 19 public: | |
| 20 CORE_EXPORT V8IDBObserverCallback(v8::Local<v8::Function>, v8::Local<v8::Obj ect>, ScriptState*); | |
|
Marijn Kruisselbrink
2016/06/02 23:51:24
Code in modules/ should use MODULES_EXPORT rather
palakj1
2016/06/03 01:21:52
Removed CORE_EXPORT
| |
| 21 ~V8IDBObserverCallback() override; | |
| 22 | |
| 23 DECLARE_VIRTUAL_TRACE(); | |
| 24 | |
| 25 ExecutionContext* getExecutionContext() const override { return ContextLifec ycleObserver::getExecutionContext(); } | |
| 26 private: | |
| 27 static void setWeakCallback(const v8::WeakCallbackInfo<V8IDBObserverCallback >&); | |
|
dmurph
2016/06/02 23:48:37
Do we need this?
palakj1
2016/06/03 01:21:52
I had copied this peice of code from Intersection
| |
| 28 | |
| 29 ScopedPersistent<v8::Function> m_callback; | |
| 30 RefPtr<ScriptState> m_scriptState; | |
| 31 }; | |
| 32 | |
| 33 } // namespace blink | |
| 34 #endif // V8IDBObserverCallback_h | |
| OLD | NEW |