Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: chrome/renderer/safe_browsing/malware_dom_details.h

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
11 11
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "content/public/renderer/render_view_observer.h" 16 #include "content/public/renderer/render_view_observer.h"
17 17
18 namespace WebKit { 18 namespace blink {
19 class WebElement; 19 class WebElement;
20 } 20 }
21 21
22 struct SafeBrowsingHostMsg_MalwareDOMDetails_Node; 22 struct SafeBrowsingHostMsg_MalwareDOMDetails_Node;
23 23
24 namespace safe_browsing { 24 namespace safe_browsing {
25 25
26 // There is one MalwareDOMDetails per RenderView. 26 // There is one MalwareDOMDetails per RenderView.
27 class MalwareDOMDetails : public content::RenderViewObserver { 27 class MalwareDOMDetails : public content::RenderViewObserver {
28 public: 28 public:
(...skipping 14 matching lines...) Expand all
43 // the RenderView. 43 // the RenderView.
44 explicit MalwareDOMDetails(content::RenderView* render_view); 44 explicit MalwareDOMDetails(content::RenderView* render_view);
45 45
46 // RenderViewObserver implementation. 46 // RenderViewObserver implementation.
47 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 47 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
48 48
49 void OnGetMalwareDOMDetails(); 49 void OnGetMalwareDOMDetails();
50 50
51 // Handler for the various HTML elements that we extract URLs from. 51 // Handler for the various HTML elements that we extract URLs from.
52 void HandleElement( 52 void HandleElement(
53 const WebKit::WebElement& element, 53 const blink::WebElement& element,
54 SafeBrowsingHostMsg_MalwareDOMDetails_Node* parent_node, 54 SafeBrowsingHostMsg_MalwareDOMDetails_Node* parent_node,
55 std::vector<SafeBrowsingHostMsg_MalwareDOMDetails_Node>* resources); 55 std::vector<SafeBrowsingHostMsg_MalwareDOMDetails_Node>* resources);
56 56
57 DISALLOW_COPY_AND_ASSIGN(MalwareDOMDetails); 57 DISALLOW_COPY_AND_ASSIGN(MalwareDOMDetails);
58 }; 58 };
59 59
60 } // namespace safe_browsing 60 } // namespace safe_browsing
61 61
62 #endif // CHROME_RENDERER_SAFE_BROWSING_MALWARE_DOM_DETAILS_H_ 62 #endif // CHROME_RENDERER_SAFE_BROWSING_MALWARE_DOM_DETAILS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/printing/print_web_view_helper_win.cc ('k') | chrome/renderer/safe_browsing/malware_dom_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698