summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/external_extension.h
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 16:27:42 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 16:27:42 +0000
commit3c8e3706b7f42bc0fc380ece4a7965539e8e0d65 (patch)
treea5a4ca442cac0e9f6e97313e3663700a89b9a988 /chrome/renderer/external_extension.h
parent54c89ef568ae71304e7804c75a44fe2f16f859f2 (diff)
downloadchromium_src-3c8e3706b7f42bc0fc380ece4a7965539e8e0d65.zip
chromium_src-3c8e3706b7f42bc0fc380ece4a7965539e8e0d65.tar.gz
chromium_src-3c8e3706b7f42bc0fc380ece4a7965539e8e0d65.tar.bz2
Replace window.external with a v8::extension.
BUG=http://crbug.com/10957 TEST=Verify that the AddSearchProvider logic still works. This dates back to an old bug http://b/1069781 Review URL: http://codereview.chromium.org/99168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15056 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/external_extension.h')
-rw-r--r--chrome/renderer/external_extension.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/renderer/external_extension.h b/chrome/renderer/external_extension.h
new file mode 100644
index 0000000..839aff3
--- /dev/null
+++ b/chrome/renderer/external_extension.h
@@ -0,0 +1,21 @@
+// 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.
+
+// Implements the window.external object.
+
+#ifndef CHROME_RENDERER_EXTENSIONS_V8_EXTERNAL_EXTENSION_H_
+#define CHROME_RENDERER_EXTENSIONS_V8_EXTERNAL_EXTENSION_H_
+
+#include "v8/include/v8.h"
+
+namespace extensions_v8 {
+
+class ExternalExtension {
+ public:
+ static v8::Extension* Get();
+};
+
+} // namespace extensions_v8
+
+#endif // CHROME_RENDERER_EXTENSIONS_V8_EXTERNAL_EXTENSION_H_