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

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

Issue 2731913003: Remove FillDOMInThreatDetails finch feature. (Closed)
Patch Set: Sync Created 3 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_
7 7
8 // A class that encapsulates the detailed threat reports sent when 8 // A class that encapsulates the detailed threat reports sent when
9 // users opt-in to do so from the safe browsing warning page. 9 // users opt-in to do so from the safe browsing warning page.
10 10
11 // An instance of this class is generated when a safe browsing warning page 11 // An instance of this class is generated when a safe browsing warning page
12 // is shown (SafeBrowsingBlockingPage). 12 // is shown (SafeBrowsingBlockingPage).
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <unordered_set> 16 #include <unordered_set>
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/containers/hash_tables.h" 19 #include "base/containers/hash_tables.h"
20 #include "base/feature_list.h"
21 #include "base/gtest_prod_util.h" 20 #include "base/gtest_prod_util.h"
22 #include "base/macros.h" 21 #include "base/macros.h"
23 #include "base/memory/ref_counted.h" 22 #include "base/memory/ref_counted.h"
24 #include "chrome/browser/safe_browsing/ui_manager.h" 23 #include "chrome/browser/safe_browsing/ui_manager.h"
25 #include "chrome/common/safe_browsing/csd.pb.h" 24 #include "chrome/common/safe_browsing/csd.pb.h"
26 #include "components/safe_browsing/common/safebrowsing_types.h" 25 #include "components/safe_browsing/common/safebrowsing_types.h"
27 #include "content/public/browser/browser_thread.h" 26 #include "content/public/browser/browser_thread.h"
28 #include "content/public/browser/web_contents_observer.h" 27 #include "content/public/browser/web_contents_observer.h"
29 #include "net/base/completion_callback.h" 28 #include "net/base/completion_callback.h"
30 29
31 namespace net { 30 namespace net {
32 class URLRequestContextGetter; 31 class URLRequestContextGetter;
33 } 32 }
34 33
35 class Profile; 34 class Profile;
36 struct SafeBrowsingHostMsg_ThreatDOMDetails_Node; 35 struct SafeBrowsingHostMsg_ThreatDOMDetails_Node;
37 36
38 namespace safe_browsing { 37 namespace safe_browsing {
39 38
40 extern const base::Feature kFillDOMInThreatDetails;
41
42 // Maps a URL to its Resource. 39 // Maps a URL to its Resource.
43 class ThreatDetailsCacheCollector; 40 class ThreatDetailsCacheCollector;
44 class ThreatDetailsRedirectsCollector; 41 class ThreatDetailsRedirectsCollector;
45 class ThreatDetailsFactory; 42 class ThreatDetailsFactory;
46 43
47 using ResourceMap = 44 using ResourceMap =
48 base::hash_map<std::string, 45 base::hash_map<std::string,
49 std::unique_ptr<ClientSafeBrowsingReportRequest::Resource>>; 46 std::unique_ptr<ClientSafeBrowsingReportRequest::Resource>>;
50 47
51 // Maps a key of an HTML element to its corresponding HTMLElement proto message. 48 // Maps a key of an HTML element to its corresponding HTMLElement proto message.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 243
247 virtual ThreatDetails* CreateThreatDetails( 244 virtual ThreatDetails* CreateThreatDetails(
248 BaseUIManager* ui_manager, 245 BaseUIManager* ui_manager,
249 content::WebContents* web_contents, 246 content::WebContents* web_contents,
250 const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0; 247 const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0;
251 }; 248 };
252 249
253 } // namespace safe_browsing 250 } // namespace safe_browsing
254 251
255 #endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_ 252 #endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc ('k') | chrome/browser/safe_browsing/threat_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698