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/WebElement.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" |
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
49 #include "ui/base/ui_base_switches_util.h" | 49 #include "ui/base/ui_base_switches_util.h" |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 WebElement element = node.to<WebElement>(); | 851 WebElement element = node.to<WebElement>(); |
852 if (!element.hasTagName(tag_name)) | 852 if (!element.hasTagName(tag_name)) |
853 continue; | 853 continue; |
854 WebString value = element.getAttribute(attribute_name); | 854 WebString value = element.getAttribute(attribute_name); |
855 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) | 855 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) |
856 continue; | 856 continue; |
857 return true; | 857 return true; |
858 } | 858 } |
859 return false; | 859 return false; |
860 } | 860 } |
OLD | NEW |