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

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

Issue 2540563002: Move SafeBrowsingUIManager::UnsafeResource to security_interstitials namespace (Closed)
Patch Set: rebase update Created 4 years 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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 typedef base::hash_map< 43 typedef base::hash_map<
44 std::string, 44 std::string,
45 linked_ptr<ClientSafeBrowsingReportRequest::Resource>> 45 linked_ptr<ClientSafeBrowsingReportRequest::Resource>>
46 ResourceMap; 46 ResourceMap;
47 47
48 class ThreatDetails : public base::RefCountedThreadSafe< 48 class ThreatDetails : public base::RefCountedThreadSafe<
49 ThreatDetails, 49 ThreatDetails,
50 content::BrowserThread::DeleteOnUIThread>, 50 content::BrowserThread::DeleteOnUIThread>,
51 public content::WebContentsObserver { 51 public content::WebContentsObserver {
52 public: 52 public:
53 typedef SafeBrowsingUIManager::UnsafeResource UnsafeResource; 53 typedef security_interstitials::UnsafeResource UnsafeResource;
54 54
55 // Constructs a new ThreatDetails instance, using the factory. 55 // Constructs a new ThreatDetails instance, using the factory.
56 static ThreatDetails* NewThreatDetails(SafeBrowsingUIManager* ui_manager, 56 static ThreatDetails* NewThreatDetails(SafeBrowsingUIManager* ui_manager,
57 content::WebContents* web_contents, 57 content::WebContents* web_contents,
58 const UnsafeResource& resource); 58 const UnsafeResource& resource);
59 59
60 // Makes the passed |factory| the factory used to instanciate 60 // Makes the passed |factory| the factory used to instanciate
61 // SafeBrowsingBlockingPage objects. Useful for tests. 61 // SafeBrowsingBlockingPage objects. Useful for tests.
62 static void RegisterFactory(ThreatDetailsFactory* factory) { 62 static void RegisterFactory(ThreatDetailsFactory* factory) {
63 factory_ = factory; 63 factory_ = factory;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 virtual ThreatDetails* CreateThreatDetails( 178 virtual ThreatDetails* CreateThreatDetails(
179 SafeBrowsingUIManager* ui_manager, 179 SafeBrowsingUIManager* ui_manager,
180 content::WebContents* web_contents, 180 content::WebContents* web_contents,
181 const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0; 181 const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0;
182 }; 182 };
183 183
184 } // namespace safe_browsing 184 } // namespace safe_browsing
185 185
186 #endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_ 186 #endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc ('k') | chrome/browser/safe_browsing/threat_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698