summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/js_only_v8_extensions.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 08:18:04 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 08:18:04 +0000
commita1a0df059f8145a73231752cefde82c3ddf3853a (patch)
tree63934a7ad6de71c3229dd2959170453d1ca7d050 /chrome/renderer/js_only_v8_extensions.cc
parent64f001a8a74f5d861d9948155c92419f53928e50 (diff)
downloadchromium_src-a1a0df059f8145a73231752cefde82c3ddf3853a.zip
chromium_src-a1a0df059f8145a73231752cefde82c3ddf3853a.tar.gz
chromium_src-a1a0df059f8145a73231752cefde82c3ddf3853a.tar.bz2
rebase and more minor changes.
Review URL: http://codereview.chromium.org/62182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13410 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/js_only_v8_extensions.cc')
-rw-r--r--chrome/renderer/js_only_v8_extensions.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/renderer/js_only_v8_extensions.cc b/chrome/renderer/js_only_v8_extensions.cc
new file mode 100644
index 0000000..5ca3ae7
--- /dev/null
+++ b/chrome/renderer/js_only_v8_extensions.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/renderer/js_only_v8_extensions.h"
+
+#include "chrome/renderer/extensions/bindings_utils.h"
+#include "grit/webkit_resources.h"
+
+// BaseJsV8Extension
+const char* BaseJsV8Extension::kName = "chrome/base";
+v8::Extension* BaseJsV8Extension::Get() {
+ return new v8::Extension(kName, GetStringResource<IDR_DEVTOOLS_BASE_JS>(),
+ 0, NULL);
+}
+
+// JsonJsV8Extension
+const char* JsonJsV8Extension::kName = "chrome/json";
+v8::Extension* JsonJsV8Extension::Get() {
+ static const char* deps[] = {
+ BaseJsV8Extension::kName
+ };
+ return new v8::Extension(kName, GetStringResource<IDR_DEVTOOLS_JSON_JS>(),
+ arraysize(deps), deps);
+}