| 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_render_view_observer.h" | 5 #include "chrome/renderer/chrome_render_view_observer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
| 15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| 16 #include "chrome/common/favicon_url.h" | |
| 17 #include "chrome/common/prerender_messages.h" | 16 #include "chrome/common/prerender_messages.h" |
| 18 #include "chrome/common/render_messages.h" | 17 #include "chrome/common/render_messages.h" |
| 19 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 20 #include "chrome/renderer/chrome_render_process_observer.h" | 19 #include "chrome/renderer/chrome_render_process_observer.h" |
| 21 #include "chrome/renderer/content_settings_observer.h" | 20 #include "chrome/renderer/content_settings_observer.h" |
| 22 #include "chrome/renderer/extensions/dispatcher.h" | 21 #include "chrome/renderer/extensions/dispatcher.h" |
| 23 #include "chrome/renderer/external_host_bindings.h" | 22 #include "chrome/renderer/external_host_bindings.h" |
| 24 #include "chrome/renderer/frame_sniffer.h" | 23 #include "chrome/renderer/frame_sniffer.h" |
| 25 #include "chrome/renderer/prerender/prerender_helper.h" | 24 #include "chrome/renderer/prerender/prerender_helper.h" |
| 26 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 25 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 if (!external_host_bindings_.get()) { | 843 if (!external_host_bindings_.get()) { |
| 845 external_host_bindings_.reset(new ExternalHostBindings( | 844 external_host_bindings_.reset(new ExternalHostBindings( |
| 846 render_view(), routing_id())); | 845 render_view(), routing_id())); |
| 847 } | 846 } |
| 848 return external_host_bindings_.get(); | 847 return external_host_bindings_.get(); |
| 849 } | 848 } |
| 850 | 849 |
| 851 bool ChromeRenderViewObserver::IsStrictSecurityHost(const std::string& host) { | 850 bool ChromeRenderViewObserver::IsStrictSecurityHost(const std::string& host) { |
| 852 return (strict_security_hosts_.find(host) != strict_security_hosts_.end()); | 851 return (strict_security_hosts_.find(host) != strict_security_hosts_.end()); |
| 853 } | 852 } |
| OLD | NEW |