| OLD | NEW |
| 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/gtest_prod_util.h" | 20 #include "base/gtest_prod_util.h" |
| 21 #include "base/macros.h" | 21 #include "base/macros.h" |
| 22 #include "base/memory/ref_counted.h" | 22 #include "base/memory/ref_counted.h" |
| 23 #include "chrome/browser/safe_browsing/ui_manager.h" | 23 #include "chrome/browser/safe_browsing/ui_manager.h" |
| 24 #include "components/safe_browsing/common/csd.pb.h" |
| 24 #include "components/safe_browsing/common/safebrowsing_types.h" | 25 #include "components/safe_browsing/common/safebrowsing_types.h" |
| 25 #include "components/safe_browsing/csd.pb.h" | |
| 26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
| 27 #include "content/public/browser/web_contents_observer.h" | 27 #include "content/public/browser/web_contents_observer.h" |
| 28 #include "net/base/completion_callback.h" | 28 #include "net/base/completion_callback.h" |
| 29 | 29 |
| 30 namespace net { | 30 namespace net { |
| 31 class URLRequestContextGetter; | 31 class URLRequestContextGetter; |
| 32 } | 32 } |
| 33 | 33 |
| 34 class Profile; | 34 class Profile; |
| 35 struct SafeBrowsingHostMsg_ThreatDOMDetails_Node; | 35 struct SafeBrowsingHostMsg_ThreatDOMDetails_Node; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 virtual ThreatDetails* CreateThreatDetails( | 244 virtual ThreatDetails* CreateThreatDetails( |
| 245 BaseUIManager* ui_manager, | 245 BaseUIManager* ui_manager, |
| 246 content::WebContents* web_contents, | 246 content::WebContents* web_contents, |
| 247 const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0; | 247 const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0; |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 } // namespace safe_browsing | 250 } // namespace safe_browsing |
| 251 | 251 |
| 252 #endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_ | 252 #endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_ |
| OLD | NEW |