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 22 matching lines...) Expand all Loading... |
33 #include "extensions/common/stack_frame.h" | 33 #include "extensions/common/stack_frame.h" |
34 #include "net/base/data_url.h" | 34 #include "net/base/data_url.h" |
35 #include "skia/ext/image_operations.h" | 35 #include "skia/ext/image_operations.h" |
36 #include "skia/ext/platform_canvas.h" | 36 #include "skia/ext/platform_canvas.h" |
37 #include "third_party/WebKit/public/platform/WebCString.h" | 37 #include "third_party/WebKit/public/platform/WebCString.h" |
38 #include "third_party/WebKit/public/platform/WebRect.h" | 38 #include "third_party/WebKit/public/platform/WebRect.h" |
39 #include "third_party/WebKit/public/platform/WebSize.h" | 39 #include "third_party/WebKit/public/platform/WebSize.h" |
40 #include "third_party/WebKit/public/platform/WebString.h" | 40 #include "third_party/WebKit/public/platform/WebString.h" |
41 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 41 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
42 #include "third_party/WebKit/public/platform/WebVector.h" | 42 #include "third_party/WebKit/public/platform/WebVector.h" |
43 #include "third_party/WebKit/public/web/WebAccessibilityObject.h" | 43 #include "third_party/WebKit/public/web/WebAXObject.h" |
44 #include "third_party/WebKit/public/web/WebDataSource.h" | 44 #include "third_party/WebKit/public/web/WebDataSource.h" |
45 #include "third_party/WebKit/public/web/WebDocument.h" | 45 #include "third_party/WebKit/public/web/WebDocument.h" |
46 #include "third_party/WebKit/public/web/WebElement.h" | 46 #include "third_party/WebKit/public/web/WebElement.h" |
47 #include "third_party/WebKit/public/web/WebFrame.h" | 47 #include "third_party/WebKit/public/web/WebFrame.h" |
48 #include "third_party/WebKit/public/web/WebInputEvent.h" | 48 #include "third_party/WebKit/public/web/WebInputEvent.h" |
49 #include "third_party/WebKit/public/web/WebNode.h" | 49 #include "third_party/WebKit/public/web/WebNode.h" |
50 #include "third_party/WebKit/public/web/WebNodeList.h" | 50 #include "third_party/WebKit/public/web/WebNodeList.h" |
51 #include "third_party/WebKit/public/web/WebView.h" | 51 #include "third_party/WebKit/public/web/WebView.h" |
52 #include "ui/base/ui_base_switches_util.h" | 52 #include "ui/base/ui_base_switches_util.h" |
53 #include "ui/gfx/favicon_size.h" | 53 #include "ui/gfx/favicon_size.h" |
54 #include "ui/gfx/size.h" | 54 #include "ui/gfx/size.h" |
55 #include "ui/gfx/size_f.h" | 55 #include "ui/gfx/size_f.h" |
56 #include "ui/gfx/skbitmap_operations.h" | 56 #include "ui/gfx/skbitmap_operations.h" |
57 #include "v8/include/v8-testing.h" | 57 #include "v8/include/v8-testing.h" |
58 #include "webkit/glue/webkit_glue.h" | 58 #include "webkit/glue/webkit_glue.h" |
59 | 59 |
60 using base::string16; | 60 using base::string16; |
61 using extensions::APIPermission; | 61 using extensions::APIPermission; |
62 using WebKit::WebAccessibilityObject; | 62 using WebKit::WebAXObject; |
63 using WebKit::WebCString; | 63 using WebKit::WebCString; |
64 using WebKit::WebDataSource; | 64 using WebKit::WebDataSource; |
65 using WebKit::WebDocument; | 65 using WebKit::WebDocument; |
66 using WebKit::WebElement; | 66 using WebKit::WebElement; |
67 using WebKit::WebFrame; | 67 using WebKit::WebFrame; |
68 using WebKit::WebGestureEvent; | 68 using WebKit::WebGestureEvent; |
69 using WebKit::WebIconURL; | 69 using WebKit::WebIconURL; |
70 using WebKit::WebNode; | 70 using WebKit::WebNode; |
71 using WebKit::WebNodeList; | 71 using WebKit::WebNodeList; |
72 using WebKit::WebRect; | 72 using WebKit::WebRect; |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 WebElement element = node.to<WebElement>(); | 1009 WebElement element = node.to<WebElement>(); |
1010 if (!element.hasTagName(tag_name)) | 1010 if (!element.hasTagName(tag_name)) |
1011 continue; | 1011 continue; |
1012 WebString value = element.getAttribute(attribute_name); | 1012 WebString value = element.getAttribute(attribute_name); |
1013 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) | 1013 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) |
1014 continue; | 1014 continue; |
1015 return true; | 1015 return true; |
1016 } | 1016 } |
1017 return false; | 1017 return false; |
1018 } | 1018 } |
OLD | NEW |