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 #include "chrome/renderer/extensions/js_only_v8_extensions.h" | 5 #include "chrome/renderer/extensions/js_only_v8_extensions.h" |
6 | 6 |
7 #include "chrome/renderer/extensions/extension_base.h" | 7 #include "chrome/renderer/extensions/extension_base.h" |
8 #include "grit/renderer_resources.h" | 8 #include "grit/renderer_resources.h" |
| 9 #include "v8/include/v8.h" |
9 | 10 |
10 // JsonSchemaJsV8Extension | 11 // JsonSchemaJsV8Extension |
11 const char* JsonSchemaJsV8Extension::kName = "chrome/jsonschema"; | 12 const char* JsonSchemaJsV8Extension::kName = "chrome/jsonschema"; |
12 v8::Extension* JsonSchemaJsV8Extension::Get() { | 13 v8::Extension* JsonSchemaJsV8Extension::Get() { |
13 static v8::Extension* extension = new ExtensionBase( | 14 static v8::Extension* extension = new ExtensionBase( |
14 kName, ExtensionBase::GetStringResource(IDR_JSON_SCHEMA_JS), 0, NULL, | 15 kName, ExtensionBase::GetStringResource(IDR_JSON_SCHEMA_JS), 0, NULL, |
15 NULL); | 16 NULL); |
16 return extension; | 17 return extension; |
17 } | 18 } |
18 | 19 |
19 // ExtensionApiTestV8Extension | 20 // ExtensionApiTestV8Extension |
20 const char* ExtensionApiTestV8Extension::kName = "chrome/extensionapitest"; | 21 const char* ExtensionApiTestV8Extension::kName = "chrome/extensionapitest"; |
21 v8::Extension* ExtensionApiTestV8Extension::Get() { | 22 v8::Extension* ExtensionApiTestV8Extension::Get() { |
22 static v8::Extension* extension = new ExtensionBase( | 23 static v8::Extension* extension = new ExtensionBase( |
23 kName, ExtensionBase::GetStringResource(IDR_EXTENSION_APITEST_JS), 0, | 24 kName, ExtensionBase::GetStringResource(IDR_EXTENSION_APITEST_JS), 0, |
24 NULL, NULL); | 25 NULL, NULL); |
25 return extension; | 26 return extension; |
26 } | 27 } |
OLD | NEW |