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

Side by Side Diff: chrome/renderer/extensions/js_only_v8_extensions.cc

Issue 7828103: Forward declare v8::Extension in chrome/renderer/extensions/*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months 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 | Annotate | Revision Log
OLDNEW
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/js_only_v8_extensions.h ('k') | chrome/renderer/extensions/renderer_extension_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698