| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 64 #include "chrome/renderer/prerender/prerender_helper.h" | 64 #include "chrome/renderer/prerender/prerender_helper.h" | 
| 65 #include "chrome/renderer/prerender/prerender_webmediaplayer.h" | 65 #include "chrome/renderer/prerender/prerender_webmediaplayer.h" | 
| 66 #include "chrome/renderer/prerender/prerenderer_client.h" | 66 #include "chrome/renderer/prerender/prerenderer_client.h" | 
| 67 #include "chrome/renderer/printing/print_web_view_helper.h" | 67 #include "chrome/renderer/printing/print_web_view_helper.h" | 
| 68 #include "chrome/renderer/safe_browsing/malware_dom_details.h" | 68 #include "chrome/renderer/safe_browsing/malware_dom_details.h" | 
| 69 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 69 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 
| 70 #include "chrome/renderer/searchbox/searchbox.h" | 70 #include "chrome/renderer/searchbox/searchbox.h" | 
| 71 #include "chrome/renderer/searchbox/searchbox_extension.h" | 71 #include "chrome/renderer/searchbox/searchbox_extension.h" | 
| 72 #include "chrome/renderer/spellchecker/spellcheck.h" | 72 #include "chrome/renderer/spellchecker/spellcheck.h" | 
| 73 #include "chrome/renderer/spellchecker/spellcheck_provider.h" | 73 #include "chrome/renderer/spellchecker/spellcheck_provider.h" | 
|  | 74 #include "chrome/renderer/validation_message_agent.h" | 
| 74 #include "components/autofill/renderer/autofill_agent.h" | 75 #include "components/autofill/renderer/autofill_agent.h" | 
| 75 #include "components/autofill/renderer/password_autofill_agent.h" | 76 #include "components/autofill/renderer/password_autofill_agent.h" | 
| 76 #include "components/autofill/renderer/password_generation_manager.h" | 77 #include "components/autofill/renderer/password_generation_manager.h" | 
| 77 #include "components/visitedlink/renderer/visitedlink_slave.h" | 78 #include "components/visitedlink/renderer/visitedlink_slave.h" | 
| 78 #include "content/public/common/content_constants.h" | 79 #include "content/public/common/content_constants.h" | 
| 79 #include "content/public/renderer/render_thread.h" | 80 #include "content/public/renderer/render_thread.h" | 
| 80 #include "content/public/renderer/render_view.h" | 81 #include "content/public/renderer/render_view.h" | 
| 81 #include "content/public/renderer/render_view_visitor.h" | 82 #include "content/public/renderer/render_view_visitor.h" | 
| 82 #include "extensions/common/constants.h" | 83 #include "extensions/common/constants.h" | 
| 83 #include "grit/generated_resources.h" | 84 #include "grit/generated_resources.h" | 
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 367 #endif | 368 #endif | 
| 368   new SpellCheckProvider(render_view, spellcheck_.get()); | 369   new SpellCheckProvider(render_view, spellcheck_.get()); | 
| 369   new prerender::PrerendererClient(render_view); | 370   new prerender::PrerendererClient(render_view); | 
| 370 #if defined(FULL_SAFE_BROWSING) | 371 #if defined(FULL_SAFE_BROWSING) | 
| 371   safe_browsing::MalwareDOMDetails::Create(render_view); | 372   safe_browsing::MalwareDOMDetails::Create(render_view); | 
| 372 #endif | 373 #endif | 
| 373 | 374 | 
| 374   PasswordAutofillAgent* password_autofill_agent = | 375   PasswordAutofillAgent* password_autofill_agent = | 
| 375       new PasswordAutofillAgent(render_view); | 376       new PasswordAutofillAgent(render_view); | 
| 376   new AutofillAgent(render_view, password_autofill_agent); | 377   new AutofillAgent(render_view, password_autofill_agent); | 
|  | 378   new ValidationMessageAgent(render_view); | 
| 377 | 379 | 
| 378   CommandLine* command_line = CommandLine::ForCurrentProcess(); | 380   CommandLine* command_line = CommandLine::ForCurrentProcess(); | 
| 379   if (command_line->HasSwitch(switches::kEnablePasswordGeneration)) | 381   if (command_line->HasSwitch(switches::kEnablePasswordGeneration)) | 
| 380     new PasswordGenerationManager(render_view); | 382     new PasswordGenerationManager(render_view); | 
| 381   if (command_line->HasSwitch(switches::kInstantProcess)) | 383   if (command_line->HasSwitch(switches::kInstantProcess)) | 
| 382     new SearchBox(render_view); | 384     new SearchBox(render_view); | 
| 383 | 385 | 
| 384   new ChromeRenderViewObserver( | 386   new ChromeRenderViewObserver( | 
| 385       render_view, content_settings, chrome_observer_.get(), | 387       render_view, content_settings, chrome_observer_.get(), | 
| 386       extension_dispatcher_.get()); | 388       extension_dispatcher_.get()); | 
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1232 | 1234 | 
| 1233   for (size_t i = 0; i < request_os_file_handle_allowed_hosts_.size(); ++i) { | 1235   for (size_t i = 0; i < request_os_file_handle_allowed_hosts_.size(); ++i) { | 
| 1234     if (MatchPattern(inner.host(), request_os_file_handle_allowed_hosts_[i])) | 1236     if (MatchPattern(inner.host(), request_os_file_handle_allowed_hosts_[i])) | 
| 1235       return true; | 1237       return true; | 
| 1236   } | 1238   } | 
| 1237 | 1239 | 
| 1238   return false; | 1240   return false; | 
| 1239 } | 1241 } | 
| 1240 | 1242 | 
| 1241 }  // namespace chrome | 1243 }  // namespace chrome | 
| OLD | NEW | 
|---|