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

Side by Side Diff: chrome/browser/safe_browsing/ui_manager.h

Issue 586793003: Safebrowsing: Honor the metadata from malware fullhash results in SB API 3.0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes for sky Created 6 years, 2 months 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
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 // The Safe Browsing service is responsible for downloading anti-phishing and 5 // The Safe Browsing service is responsible for downloading anti-phishing and
6 // anti-malware tables and checking urls against them. 6 // anti-malware tables and checking urls against them.
7 7
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ 9 #define CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_
10 10
(...skipping 26 matching lines...) Expand all
37 // Structure used to pass parameters between the IO and UI thread when 37 // Structure used to pass parameters between the IO and UI thread when
38 // interacting with the blocking page. 38 // interacting with the blocking page.
39 struct UnsafeResource { 39 struct UnsafeResource {
40 UnsafeResource(); 40 UnsafeResource();
41 ~UnsafeResource(); 41 ~UnsafeResource();
42 42
43 GURL url; 43 GURL url;
44 GURL original_url; 44 GURL original_url;
45 std::vector<GURL> redirect_urls; 45 std::vector<GURL> redirect_urls;
46 bool is_subresource; 46 bool is_subresource;
47 bool is_subframe;
47 SBThreatType threat_type; 48 SBThreatType threat_type;
49 std::string threat_metadata;
48 UrlCheckCallback callback; // This is called back on the IO thread. 50 UrlCheckCallback callback; // This is called back on the IO thread.
49 int render_process_host_id; 51 int render_process_host_id;
50 int render_view_id; 52 int render_view_id;
51 }; 53 };
52 54
53 // Observer class can be used to get notified when a SafeBrowsing hit 55 // Observer class can be used to get notified when a SafeBrowsing hit
54 // was found. 56 // was found.
55 class Observer { 57 class Observer {
56 public: 58 public:
57 // The |resource| was classified as unsafe by SafeBrowsing. 59 // The |resource| was classified as unsafe by SafeBrowsing.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 153
152 // Only access this whitelist from the UI thread. 154 // Only access this whitelist from the UI thread.
153 std::vector<WhiteListedEntry> white_listed_entries_; 155 std::vector<WhiteListedEntry> white_listed_entries_;
154 156
155 ObserverList<Observer> observer_list_; 157 ObserverList<Observer> observer_list_;
156 158
157 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUIManager); 159 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUIManager);
158 }; 160 };
159 161
160 #endif // CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_ 162 #endif // CHROME_BROWSER_SAFE_BROWSING_UI_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_util.h ('k') | chrome/browser/safe_browsing/ui_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698