OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/searchbox_extension.h" | 5 #include "chrome/renderer/searchbox_extension.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/string_split.h" | 11 #include "base/string_split.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "chrome/common/render_messages_params.h" | |
14 #include "chrome/renderer/searchbox.h" | 13 #include "chrome/renderer/searchbox.h" |
15 #include "content/renderer/render_view.h" | 14 #include "content/renderer/render_view.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
19 #include "v8/include/v8.h" | 18 #include "v8/include/v8.h" |
20 | 19 |
21 using WebKit::WebFrame; | 20 using WebKit::WebFrame; |
22 using WebKit::WebScriptSource; | 21 using WebKit::WebScriptSource; |
23 using WebKit::WebString; | 22 using WebKit::WebString; |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 426 |
428 return supports_searchbox_api || supports_deprecated_api; | 427 return supports_searchbox_api || supports_deprecated_api; |
429 } | 428 } |
430 | 429 |
431 // static | 430 // static |
432 v8::Extension* SearchBoxExtension::Get() { | 431 v8::Extension* SearchBoxExtension::Get() { |
433 return new SearchBoxExtensionWrapper(); | 432 return new SearchBoxExtensionWrapper(); |
434 } | 433 } |
435 | 434 |
436 } // namespace extensions_v8 | 435 } // namespace extensions_v8 |
OLD | NEW |