OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 PluginClient_h |
| 6 #define PluginClient_h |
| 7 |
| 8 #include <v8.h> |
| 9 #include "core/CoreExport.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class HTMLPlugInElement; |
| 15 |
| 16 class CORE_EXPORT PluginClient |
| 17 : public GarbageCollectedFinalized<PluginClient> { |
| 18 public: |
| 19 virtual ~PluginClient(); |
| 20 |
| 21 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*); |
| 22 |
| 23 HTMLPlugInElement* htmlPlugInElement() { return m_htmlPluginElement.get(); } |
| 24 |
| 25 DECLARE_VIRTUAL_TRACE(); |
| 26 |
| 27 protected: |
| 28 explicit PluginClient(HTMLPlugInElement*); |
| 29 |
| 30 private: |
| 31 Member<HTMLPlugInElement> m_htmlPluginElement; |
| 32 }; |
| 33 } // namespace blink |
| 34 |
| 35 #endif // PluginClient_h |
OLD | NEW |