| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "chrome/renderer/prerender/prerender_helper.h" | 63 #include "chrome/renderer/prerender/prerender_helper.h" |
| 64 #include "chrome/renderer/prerender/prerender_webmediaplayer.h" | 64 #include "chrome/renderer/prerender/prerender_webmediaplayer.h" |
| 65 #include "chrome/renderer/prerender/prerenderer_client.h" | 65 #include "chrome/renderer/prerender/prerenderer_client.h" |
| 66 #include "chrome/renderer/printing/print_web_view_helper.h" | 66 #include "chrome/renderer/printing/print_web_view_helper.h" |
| 67 #include "chrome/renderer/safe_browsing/malware_dom_details.h" | 67 #include "chrome/renderer/safe_browsing/malware_dom_details.h" |
| 68 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 68 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
| 69 #include "chrome/renderer/searchbox/searchbox.h" | 69 #include "chrome/renderer/searchbox/searchbox.h" |
| 70 #include "chrome/renderer/searchbox/searchbox_extension.h" | 70 #include "chrome/renderer/searchbox/searchbox_extension.h" |
| 71 #include "chrome/renderer/spellchecker/spellcheck.h" | 71 #include "chrome/renderer/spellchecker/spellcheck.h" |
| 72 #include "chrome/renderer/spellchecker/spellcheck_provider.h" | 72 #include "chrome/renderer/spellchecker/spellcheck_provider.h" |
| 73 #include "chrome/renderer/validation_message_agent.h" |
| 73 #include "components/autofill/renderer/autofill_agent.h" | 74 #include "components/autofill/renderer/autofill_agent.h" |
| 74 #include "components/autofill/renderer/password_autofill_agent.h" | 75 #include "components/autofill/renderer/password_autofill_agent.h" |
| 75 #include "components/autofill/renderer/password_generation_manager.h" | 76 #include "components/autofill/renderer/password_generation_manager.h" |
| 76 #include "components/visitedlink/renderer/visitedlink_slave.h" | 77 #include "components/visitedlink/renderer/visitedlink_slave.h" |
| 77 #include "content/public/common/content_constants.h" | 78 #include "content/public/common/content_constants.h" |
| 78 #include "content/public/renderer/render_thread.h" | 79 #include "content/public/renderer/render_thread.h" |
| 79 #include "content/public/renderer/render_view.h" | 80 #include "content/public/renderer/render_view.h" |
| 80 #include "content/public/renderer/render_view_visitor.h" | 81 #include "content/public/renderer/render_view_visitor.h" |
| 81 #include "extensions/common/constants.h" | 82 #include "extensions/common/constants.h" |
| 82 #include "grit/generated_resources.h" | 83 #include "grit/generated_resources.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 #endif | 354 #endif |
| 354 new SpellCheckProvider(render_view, spellcheck_.get()); | 355 new SpellCheckProvider(render_view, spellcheck_.get()); |
| 355 new prerender::PrerendererClient(render_view); | 356 new prerender::PrerendererClient(render_view); |
| 356 #if defined(FULL_SAFE_BROWSING) | 357 #if defined(FULL_SAFE_BROWSING) |
| 357 safe_browsing::MalwareDOMDetails::Create(render_view); | 358 safe_browsing::MalwareDOMDetails::Create(render_view); |
| 358 #endif | 359 #endif |
| 359 | 360 |
| 360 PasswordAutofillAgent* password_autofill_agent = | 361 PasswordAutofillAgent* password_autofill_agent = |
| 361 new PasswordAutofillAgent(render_view); | 362 new PasswordAutofillAgent(render_view); |
| 362 new AutofillAgent(render_view, password_autofill_agent); | 363 new AutofillAgent(render_view, password_autofill_agent); |
| 364 new ValidationMessageAgent(render_view); |
| 363 | 365 |
| 364 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 366 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 365 if (command_line->HasSwitch(switches::kEnablePasswordGeneration)) | 367 if (command_line->HasSwitch(switches::kEnablePasswordGeneration)) |
| 366 new PasswordGenerationManager(render_view); | 368 new PasswordGenerationManager(render_view); |
| 367 if (command_line->HasSwitch(switches::kInstantProcess)) | 369 if (command_line->HasSwitch(switches::kInstantProcess)) |
| 368 new SearchBox(render_view); | 370 new SearchBox(render_view); |
| 369 | 371 |
| 370 new ChromeRenderViewObserver( | 372 new ChromeRenderViewObserver( |
| 371 render_view, content_settings, chrome_observer_.get(), | 373 render_view, content_settings, chrome_observer_.get(), |
| 372 extension_dispatcher_.get()); | 374 extension_dispatcher_.get()); |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 | 1174 |
| 1173 if (container->element().shadowHost().isNull()) | 1175 if (container->element().shadowHost().isNull()) |
| 1174 return false; | 1176 return false; |
| 1175 | 1177 |
| 1176 WebString tag_name = container->element().shadowHost().tagName(); | 1178 WebString tag_name = container->element().shadowHost().tagName(); |
| 1177 return tag_name.equals(WebString::fromUTF8(kWebViewTagName)) || | 1179 return tag_name.equals(WebString::fromUTF8(kWebViewTagName)) || |
| 1178 tag_name.equals(WebString::fromUTF8(kAdViewTagName)); | 1180 tag_name.equals(WebString::fromUTF8(kAdViewTagName)); |
| 1179 } | 1181 } |
| 1180 | 1182 |
| 1181 } // namespace chrome | 1183 } // namespace chrome |
| OLD | NEW |