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

Side by Side Diff: third_party/WebKit/Source/modules/extensions/Chrome.h

Issue 2074263002: [Experimental] Fool around with exposing extension bindings via blink Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698