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/crash_logging.h" | 10 #include "base/debug/crash_logging.h" |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 | 478 |
479 WebNodeList children = head.childNodes(); | 479 WebNodeList children = head.childNodes(); |
480 for (size_t i = 0; i < children.length(); ++i) { | 480 for (size_t i = 0; i < children.length(); ++i) { |
481 WebNode node = children.item(i); | 481 WebNode node = children.item(i); |
482 if (!node.isElementNode()) | 482 if (!node.isElementNode()) |
483 continue; | 483 continue; |
484 WebElement element = node.to<WebElement>(); | 484 WebElement element = node.to<WebElement>(); |
485 if (!element.hasHTMLTagName(tag_name)) | 485 if (!element.hasHTMLTagName(tag_name)) |
486 continue; | 486 continue; |
487 WebString value = element.getAttribute(attribute_name); | 487 WebString value = element.getAttribute(attribute_name); |
488 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) | 488 if (value.isNull() || !base::LowerCaseEqualsASCII(value, "refresh")) |
489 continue; | 489 continue; |
490 return true; | 490 return true; |
491 } | 491 } |
492 return false; | 492 return false; |
493 } | 493 } |
OLD | NEW |