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/safe_browsing/malware_dom_details.h" | 5 #include "chrome/renderer/safe_browsing/malware_dom_details.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "chrome/common/chrome_constants.h" | 8 #include "chrome/common/chrome_constants.h" |
9 #include "chrome/common/safe_browsing/safebrowsing_messages.h" | 9 #include "chrome/common/safe_browsing/safebrowsing_messages.h" |
10 #include "content/public/renderer/render_view.h" | 10 #include "content/public/renderer/render_view.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
17 | 17 |
18 namespace safe_browsing { | 18 namespace safe_browsing { |
19 | 19 |
20 // An upper limit on the number of nodes we collect. | 20 // An upper limit on the number of nodes we collect. |
21 uint32 MalwareDOMDetails::kMaxNodes = 500; | 21 uint32 MalwareDOMDetails::kMaxNodes = 500; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 // Create the child node. | 113 // Create the child node. |
114 SafeBrowsingHostMsg_MalwareDOMDetails_Node child_node; | 114 SafeBrowsingHostMsg_MalwareDOMDetails_Node child_node; |
115 child_node.url = child_url; | 115 child_node.url = child_url; |
116 child_node.tag_name = element.tagName().utf8(); | 116 child_node.tag_name = element.tagName().utf8(); |
117 child_node.parent = parent_node->url; | 117 child_node.parent = parent_node->url; |
118 resources->push_back(child_node); | 118 resources->push_back(child_node); |
119 } | 119 } |
120 | 120 |
121 } // namespace safe_browsing | 121 } // namespace safe_browsing |
OLD | NEW |