OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_JS_ONLY_V8_EXTENSIONS_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_ |
6 #define CHROME_RENDERER_JS_ONLY_V8_EXTENSIONS_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_ |
7 | 7 |
8 #include "v8/include/v8.h" | 8 #include "v8/include/v8.h" |
9 | 9 |
10 // This file contains various V8 Extensions that are JavaScript only, and | 10 // This file contains various V8 Extensions that are JavaScript only, and |
11 // don't have any C++ native functions. | 11 // don't have any C++ native functions. |
12 | 12 |
13 class BaseJsV8Extension { | 13 class BaseJsV8Extension { |
14 public: | 14 public: |
15 static const char* kName; | 15 static const char* kName; |
16 static v8::Extension* Get(); | 16 static v8::Extension* Get(); |
17 }; | 17 }; |
18 | 18 |
19 class JsonSchemaJsV8Extension { | 19 class JsonSchemaJsV8Extension { |
20 public: | 20 public: |
21 static const char* kName; | 21 static const char* kName; |
22 static v8::Extension* Get(); | 22 static v8::Extension* Get(); |
23 }; | 23 }; |
24 | 24 |
25 #endif // CHROME_RENDERER_JS_ONLY_V8_EXTENSIONS_H_ | 25 #endif // CHROME_RENDERER_JS_ONLY_V8_EXTENSIONS_H_ |
OLD | NEW |