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 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "chrome/common/render_messages_params.h" |
9 #include "chrome/renderer/render_view.h" | 10 #include "chrome/renderer/render_view.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
11 #include "v8/include/v8.h" | 12 #include "v8/include/v8.h" |
12 | 13 |
13 using WebKit::WebFrame; | 14 using WebKit::WebFrame; |
14 using WebKit::WebView; | 15 using WebKit::WebView; |
15 | 16 |
16 namespace extensions_v8 { | 17 namespace extensions_v8 { |
17 | 18 |
18 #define SEARCH_PROVIDER_API_V1 \ | 19 #define SEARCH_PROVIDER_API_V1 \ |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 return v8::ThrowException(v8::Exception::Error(v8::String::Empty())); | 136 return v8::ThrowException(v8::Exception::Error(v8::String::Empty())); |
136 } | 137 } |
137 return v8::Integer::New(install.state); | 138 return v8::Integer::New(install.state); |
138 } | 139 } |
139 | 140 |
140 v8::Extension* ExternalExtension::Get() { | 141 v8::Extension* ExternalExtension::Get() { |
141 return new ExternalExtensionWrapper(); | 142 return new ExternalExtensionWrapper(); |
142 } | 143 } |
143 | 144 |
144 } // namespace extensions_v8 | 145 } // namespace extensions_v8 |
OLD | NEW |