| 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 Chrome_h |
| 6 #define Chrome_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/frame/LocalFrame.h" |
| 10 #include "platform/Supplementable.h" |
| 11 #include "platform/heap/Heap.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class LocalFrame; |
| 16 class DeveloperPrivate; |
| 17 |
| 18 class Chrome |
| 19 : public GarbageCollected<Chrome> |
| 20 , public ScriptWrappable |
| 21 , public blink::Supplementable<Chrome> { |
| 22 DEFINE_WRAPPERTYPEINFO(); |
| 23 USING_GARBAGE_COLLECTED_MIXIN(Chrome); |
| 24 |
| 25 public: |
| 26 static Chrome* create(LocalFrame* frame) |
| 27 { |
| 28 return new Chrome(frame); |
| 29 } |
| 30 |
| 31 Chrome(LocalFrame* frame) |
| 32 : m_frame(frame) |
| 33 { |
| 34 } |
| 35 |
| 36 DeveloperPrivate* developerPrivate(ScriptState*); |
| 37 |
| 38 LocalFrame* frame() { return m_frame; } |
| 39 |
| 40 DECLARE_TRACE(); |
| 41 |
| 42 private: |
| 43 Member<LocalFrame> m_frame; |
| 44 |
| 45 Member<DeveloperPrivate> m_developerPrivate; |
| 46 }; |
| 47 |
| 48 } // namespace blink |
| 49 |
| 50 #endif // Chrome_h |
| OLD | NEW |