OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 16 matching lines...) Expand all Loading... |
27 #include "chrome/renderer/prerender/prerender_helper.h" | 27 #include "chrome/renderer/prerender/prerender_helper.h" |
28 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 28 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
29 #include "chrome/renderer/translate_helper.h" | 29 #include "chrome/renderer/translate_helper.h" |
30 #include "content/public/common/bindings_policy.h" | 30 #include "content/public/common/bindings_policy.h" |
31 #include "content/public/renderer/render_view.h" | 31 #include "content/public/renderer/render_view.h" |
32 #include "content/public/renderer/content_renderer_client.h" | 32 #include "content/public/renderer/content_renderer_client.h" |
33 #include "net/base/data_url.h" | 33 #include "net/base/data_url.h" |
34 #include "skia/ext/image_operations.h" | 34 #include "skia/ext/image_operations.h" |
35 #include "skia/ext/platform_canvas.h" | 35 #include "skia/ext/platform_canvas.h" |
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" |
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques
t.h" |
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
48 #include "ui/gfx/color_utils.h" | 48 #include "ui/gfx/color_utils.h" |
49 #include "ui/gfx/favicon_size.h" | 49 #include "ui/gfx/favicon_size.h" |
50 #include "ui/gfx/skbitmap_operations.h" | 50 #include "ui/gfx/skbitmap_operations.h" |
51 #include "webkit/glue/image_decoder.h" | 51 #include "webkit/glue/image_decoder.h" |
52 #include "webkit/glue/image_resource_fetcher.h" | 52 #include "webkit/glue/image_resource_fetcher.h" |
53 #include "webkit/glue/webkit_glue.h" | 53 #include "webkit/glue/webkit_glue.h" |
54 #include "v8/include/v8-testing.h" | 54 #include "v8/include/v8-testing.h" |
55 | 55 |
56 using WebKit::WebAccessibilityObject; | 56 using WebKit::WebAccessibilityObject; |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 reinterpret_cast<const unsigned char*>(&data[0]); | 1042 reinterpret_cast<const unsigned char*>(&data[0]); |
1043 | 1043 |
1044 return decoder.Decode(src_data, data.size()); | 1044 return decoder.Decode(src_data, data.size()); |
1045 } | 1045 } |
1046 return SkBitmap(); | 1046 return SkBitmap(); |
1047 } | 1047 } |
1048 | 1048 |
1049 bool ChromeRenderViewObserver::IsStrictSecurityHost(const std::string& host) { | 1049 bool ChromeRenderViewObserver::IsStrictSecurityHost(const std::string& host) { |
1050 return (strict_security_hosts_.find(host) != strict_security_hosts_.end()); | 1050 return (strict_security_hosts_.find(host) != strict_security_hosts_.end()); |
1051 } | 1051 } |
OLD | NEW |