| 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 // MalwareDOMDetails iterates over a document's frames and gathers | 5 // MalwareDOMDetails iterates over a document's frames and gathers |
| 6 // interesting URLs such as those of scripts and frames. When done, it sends | 6 // interesting URLs such as those of scripts and frames. When done, it sends |
| 7 // them to the MalwareDetails that requested them. | 7 // them to the MalwareDetails that requested them. |
| 8 | 8 |
| 9 #ifndef CHROME_RENDERER_SAFE_BROWSING_MALWARE_DOM_DETAILS_H_ | 9 #ifndef CHROME_RENDERER_SAFE_BROWSING_MALWARE_DOM_DETAILS_H_ |
| 10 #define CHROME_RENDERER_SAFE_BROWSING_MALWARE_DOM_DETAILS_H_ | 10 #define CHROME_RENDERER_SAFE_BROWSING_MALWARE_DOM_DETAILS_H_ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 void ExtractResources( | 34 void ExtractResources( |
| 35 std::vector<SafeBrowsingHostMsg_MalwareDOMDetails_Node>* resources); | 35 std::vector<SafeBrowsingHostMsg_MalwareDOMDetails_Node>* resources); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // Creates a MalwareDOMDetails for the specified RenderView. | 38 // Creates a MalwareDOMDetails for the specified RenderView. |
| 39 // The MalwareDOMDetails should be destroyed prior to destroying | 39 // The MalwareDOMDetails should be destroyed prior to destroying |
| 40 // the RenderView. | 40 // the RenderView. |
| 41 explicit MalwareDOMDetails(content::RenderView* render_view); | 41 explicit MalwareDOMDetails(content::RenderView* render_view); |
| 42 | 42 |
| 43 // RenderViewObserver implementation. | 43 // RenderViewObserver implementation. |
| 44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 44 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 45 | 45 |
| 46 void OnGetMalwareDOMDetails(); | 46 void OnGetMalwareDOMDetails(); |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(MalwareDOMDetails); | 48 DISALLOW_COPY_AND_ASSIGN(MalwareDOMDetails); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace safe_browsing | 51 } // namespace safe_browsing |
| 52 | 52 |
| 53 #endif // CHROME_RENDERER_SAFE_BROWSING_MALWARE_DOM_DETAILS_H_ | 53 #endif // CHROME_RENDERER_SAFE_BROWSING_MALWARE_DOM_DETAILS_H_ |
| OLD | NEW |