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 #include "chrome/renderer/external_extension.h" | 5 #include "chrome/renderer/external_extension.h" |
6 #include "chrome/renderer/render_view.h" | 6 #include "chrome/renderer/render_view.h" |
7 #include "webkit/api/public/WebFrame.h" | 7 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
8 | 8 |
9 using WebKit::WebFrame; | 9 using WebKit::WebFrame; |
10 using WebKit::WebView; | 10 using WebKit::WebView; |
11 | 11 |
12 namespace extensions_v8 { | 12 namespace extensions_v8 { |
13 | 13 |
14 const char* const kExternalExtensionName = "v8/External"; | 14 const char* const kExternalExtensionName = "v8/External"; |
15 | 15 |
16 class ExternalExtensionWrapper : public v8::Extension { | 16 class ExternalExtensionWrapper : public v8::Extension { |
17 public: | 17 public: |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 renderview->AddSearchProvider(name); | 56 renderview->AddSearchProvider(name); |
57 return v8::Undefined(); | 57 return v8::Undefined(); |
58 } | 58 } |
59 }; | 59 }; |
60 | 60 |
61 v8::Extension* ExternalExtension::Get() { | 61 v8::Extension* ExternalExtension::Get() { |
62 return new ExternalExtensionWrapper(); | 62 return new ExternalExtensionWrapper(); |
63 } | 63 } |
64 | 64 |
65 } // namespace extensions_v8 | 65 } // namespace extensions_v8 |
OLD | NEW |