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" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/renderer/prerender/prerender_helper.h" | 24 #include "chrome/renderer/prerender/prerender_helper.h" |
25 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 25 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
26 #include "chrome/renderer/translate/translate_helper.h" | 26 #include "chrome/renderer/translate/translate_helper.h" |
27 #include "chrome/renderer/webview_color_overlay.h" | 27 #include "chrome/renderer/webview_color_overlay.h" |
28 #include "content/public/common/bindings_policy.h" | 28 #include "content/public/common/bindings_policy.h" |
29 #include "content/public/renderer/content_renderer_client.h" | 29 #include "content/public/renderer/content_renderer_client.h" |
30 #include "content/public/renderer/render_view.h" | 30 #include "content/public/renderer/render_view.h" |
31 #include "extensions/common/constants.h" | 31 #include "extensions/common/constants.h" |
32 #include "net/base/data_url.h" | 32 #include "net/base/data_url.h" |
33 #include "skia/ext/platform_canvas.h" | 33 #include "skia/ext/platform_canvas.h" |
34 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 34 #include "third_party/WebKit/public/platform/WebCString.h" |
35 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 35 #include "third_party/WebKit/public/platform/WebRect.h" |
36 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 36 #include "third_party/WebKit/public/platform/WebSize.h" |
37 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 37 #include "third_party/WebKit/public/platform/WebString.h" |
38 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 38 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
39 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 39 #include "third_party/WebKit/public/platform/WebVector.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
46 #include "ui/base/ui_base_switches_util.h" | 46 #include "ui/base/ui_base_switches_util.h" |
47 #include "ui/gfx/favicon_size.h" | 47 #include "ui/gfx/favicon_size.h" |
48 #include "ui/gfx/size.h" | 48 #include "ui/gfx/size.h" |
49 #include "ui/gfx/skbitmap_operations.h" | 49 #include "ui/gfx/skbitmap_operations.h" |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 if (!external_host_bindings_.get()) { | 807 if (!external_host_bindings_.get()) { |
808 external_host_bindings_.reset(new ExternalHostBindings( | 808 external_host_bindings_.reset(new ExternalHostBindings( |
809 render_view(), routing_id())); | 809 render_view(), routing_id())); |
810 } | 810 } |
811 return external_host_bindings_.get(); | 811 return external_host_bindings_.get(); |
812 } | 812 } |
813 | 813 |
814 bool ChromeRenderViewObserver::IsStrictSecurityHost(const std::string& host) { | 814 bool ChromeRenderViewObserver::IsStrictSecurityHost(const std::string& host) { |
815 return (strict_security_hosts_.find(host) != strict_security_hosts_.end()); | 815 return (strict_security_hosts_.find(host) != strict_security_hosts_.end()); |
816 } | 816 } |
OLD | NEW |