OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "v8/include/v8.h" | 9 namespace v8 { |
| 10 class Extension; |
| 11 } |
10 | 12 |
11 // This file contains various V8 Extensions that are JavaScript only, and | 13 // This file contains various V8 Extensions that are JavaScript only, and |
12 // don't have any C++ native functions. | 14 // don't have any C++ native functions. |
13 | 15 |
14 class JsonSchemaJsV8Extension { | 16 class JsonSchemaJsV8Extension { |
15 public: | 17 public: |
16 static const char* kName; | 18 static const char* kName; |
17 static v8::Extension* Get(); | 19 static v8::Extension* Get(); |
18 }; | 20 }; |
19 | 21 |
20 class ExtensionApiTestV8Extension { | 22 class ExtensionApiTestV8Extension { |
21 public: | 23 public: |
22 static const char* kName; | 24 static const char* kName; |
23 static v8::Extension* Get(); | 25 static v8::Extension* Get(); |
24 }; | 26 }; |
25 | 27 |
26 #endif // CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_ | 28 #endif // CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_ |
OLD | NEW |