| 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" | |
| 11 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 12 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 13 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/trace_event/trace_event.h" |
| 15 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
| 16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
| 17 #include "chrome/common/prerender_messages.h" | 17 #include "chrome/common/prerender_messages.h" |
| 18 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
| 19 #include "chrome/common/url_constants.h" | 19 #include "chrome/common/url_constants.h" |
| 20 #include "chrome/renderer/isolated_world_ids.h" | 20 #include "chrome/renderer/isolated_world_ids.h" |
| 21 #include "chrome/renderer/prerender/prerender_helper.h" | 21 #include "chrome/renderer/prerender/prerender_helper.h" |
| 22 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" | 22 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" |
| 23 #include "chrome/renderer/web_apps.h" | 23 #include "chrome/renderer/web_apps.h" |
| 24 #include "chrome/renderer/webview_color_overlay.h" | 24 #include "chrome/renderer/webview_color_overlay.h" |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 WebElement element = node.to<WebElement>(); | 478 WebElement element = node.to<WebElement>(); |
| 479 if (!element.hasHTMLTagName(tag_name)) | 479 if (!element.hasHTMLTagName(tag_name)) |
| 480 continue; | 480 continue; |
| 481 WebString value = element.getAttribute(attribute_name); | 481 WebString value = element.getAttribute(attribute_name); |
| 482 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) | 482 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) |
| 483 continue; | 483 continue; |
| 484 return true; | 484 return true; |
| 485 } | 485 } |
| 486 return false; | 486 return false; |
| 487 } | 487 } |
| OLD | NEW |