| 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/threat_dom_details.h" | 5 #include "chrome/renderer/safe_browsing/threat_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_frame.h" | 10 #include "content/public/renderer/render_frame.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 if (resources->size() >= kMaxNodes) { | 100 if (resources->size() >= kMaxNodes) { |
| 101 // We have reached kMaxNodes, exit early. | 101 // We have reached kMaxNodes, exit early. |
| 102 resources->push_back(details_node); | 102 resources->push_back(details_node); |
| 103 return; | 103 return; |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 } | 106 } |
| 107 resources->push_back(details_node); | 107 resources->push_back(details_node); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void ThreatDOMDetails::OnDestruct() { |
| 111 delete this; |
| 112 } |
| 113 |
| 110 } // namespace safe_browsing | 114 } // namespace safe_browsing |
| OLD | NEW |