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

Side by Side Diff: third_party/WebKit/Source/core/mojo/MojoInterfaceProvider.h

Issue 2400563002: Adds Mojo IDL. (Closed)
Patch Set: fixes modulename typo Created 4 years, 2 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.
Ken Rockot(use gerrit already) 2016/10/07 23:22:27 There can be many InterfaceProviders in the system
alokp 2016/10/10 16:41:21 Good idea. In fact it might be more flexible have
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 MojoInterfaceProvider_h
6 #define MojoInterfaceProvider_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h"
10 #include "core/mojo/MojoHandle.h"
11 #include "public/platform/InterfaceProvider.h"
12 #include "wtf/text/WTFString.h"
13
14 namespace blink {
15
16 class CORE_EXPORT MojoInterfaceProvider
17 : public GarbageCollectedFinalized<MojoInterfaceProvider>,
18 public ScriptWrappable {
19 DEFINE_WRAPPERTYPEINFO();
20
21 public:
22 MojoInterfaceProvider(std::unique_ptr<InterfaceProvider>);
23 virtual ~MojoInterfaceProvider();
24
25 MojoHandle* getInterface(String name);
26
27 DEFINE_INLINE_TRACE() {}
28
29 private:
30 std::unique_ptr<InterfaceProvider> m_provider;
31 };
32
33 } // namespace blink
34
35 #endif // MojoInterfaceProvider_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698