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

Side by Side Diff: extensions/renderer/test_v8_extension_configuration.h

Issue 2575173002: [Extensions Bindings] Add a bridge to use current custom bindings (Closed)
Patch Set: . Created 4 years 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 EXTENSIONS_RENDERER_TEST_V8_EXTENSION_CONFIGURATION_H_
6 #define EXTENSIONS_RENDERER_TEST_V8_EXTENSION_CONFIGURATION_H_
7
8 #include <memory>
9 #include <vector>
10
11 #include "base/macros.h"
12
13 namespace v8 {
14 class Extension;
15 class ExtensionConfiguration;
16 }
17
18 namespace extensions {
19
20 class TestV8ExtensionConfiguration {
21 public:
22 TestV8ExtensionConfiguration();
23 ~TestV8ExtensionConfiguration();
24
25 static v8::ExtensionConfiguration* GetConfiguration();
26
27 private:
28 std::unique_ptr<v8::Extension> safe_builtins_;
29 std::vector<const char*> v8_extension_names_;
30 std::unique_ptr<v8::ExtensionConfiguration> v8_extension_configuration_;
31
32 DISALLOW_COPY_AND_ASSIGN(TestV8ExtensionConfiguration);
33 };
34
35 } // namespace extensions
36
37 #endif // EXTENSIONS_RENDERER_TEST_V8_EXTENSION_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698