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 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_ |
OLD | NEW |