OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/ui/webui/voice_search_ui.h" | 5 #include "chrome/browser/ui/webui/voice_search_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/ui/app_list/start_page_service.h" | 23 #include "chrome/browser/ui/app_list/start_page_service.h" |
24 #include "chrome/browser/ui/webui/version_handler.h" | 24 #include "chrome/browser/ui/webui/version_handler.h" |
25 #include "chrome/common/chrome_content_client.h" | 25 #include "chrome/common/chrome_content_client.h" |
26 #include "chrome/common/chrome_paths.h" | 26 #include "chrome/common/chrome_paths.h" |
27 #include "chrome/common/chrome_version_info.h" | 27 #include "chrome/common/chrome_version_info.h" |
28 #include "chrome/common/extensions/extension_constants.h" | 28 #include "chrome/common/extensions/extension_constants.h" |
29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
31 #include "chrome/grit/chromium_strings.h" | 31 #include "chrome/grit/chromium_strings.h" |
32 #include "chrome/grit/generated_resources.h" | 32 #include "chrome/grit/generated_resources.h" |
33 #include "chrome/grit/google_chrome_strings.h" | |
34 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
35 #include "content/public/browser/plugin_service.h" | 34 #include "content/public/browser/plugin_service.h" |
36 #include "content/public/browser/url_data_source.h" | 35 #include "content/public/browser/url_data_source.h" |
37 #include "content/public/browser/web_ui.h" | 36 #include "content/public/browser/web_ui.h" |
38 #include "content/public/browser/web_ui_data_source.h" | 37 #include "content/public/browser/web_ui_data_source.h" |
39 #include "content/public/browser/web_ui_message_handler.h" | 38 #include "content/public/browser/web_ui_message_handler.h" |
40 #include "content/public/common/user_agent.h" | 39 #include "content/public/common/user_agent.h" |
41 #include "extensions/browser/extension_prefs.h" | 40 #include "extensions/browser/extension_prefs.h" |
42 #include "extensions/browser/extension_system.h" | 41 #include "extensions/browser/extension_system.h" |
43 #include "extensions/common/extension.h" | 42 #include "extensions/common/extension.h" |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 VoiceSearchUI::VoiceSearchUI(content::WebUI* web_ui) | 437 VoiceSearchUI::VoiceSearchUI(content::WebUI* web_ui) |
439 : content::WebUIController(web_ui) { | 438 : content::WebUIController(web_ui) { |
440 Profile* profile = Profile::FromWebUI(web_ui); | 439 Profile* profile = Profile::FromWebUI(web_ui); |
441 web_ui->AddMessageHandler(new VoiceSearchDomHandler(profile)); | 440 web_ui->AddMessageHandler(new VoiceSearchDomHandler(profile)); |
442 | 441 |
443 // Set up the about:voicesearch source. | 442 // Set up the about:voicesearch source. |
444 content::WebUIDataSource::Add(profile, CreateVoiceSearchUiHtmlSource()); | 443 content::WebUIDataSource::Add(profile, CreateVoiceSearchUiHtmlSource()); |
445 } | 444 } |
446 | 445 |
447 VoiceSearchUI::~VoiceSearchUI() {} | 446 VoiceSearchUI::~VoiceSearchUI() {} |
OLD | NEW |