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_MALWARE_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_H_ |
7 | 7 |
8 // A class that encapsulates the detailed malware reports sent when | 8 // A class that encapsulates the detailed malware reports sent when |
9 // users opt-in to do so from the malware warning page. | 9 // users opt-in to do so from the malware warning page. |
10 | 10 |
11 // An instance of this class is generated when a malware warning page | 11 // An instance of this class is generated when a malware warning page |
12 // is shown (SafeBrowsingBlockingPage). | 12 // is shown (SafeBrowsingBlockingPage). |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
| 17 #include "base/containers/hash_tables.h" |
17 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
18 #include "base/hash_tables.h" | |
19 #include "base/memory/linked_ptr.h" | 19 #include "base/memory/linked_ptr.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "chrome/browser/safe_browsing/report.pb.h" | 22 #include "chrome/browser/safe_browsing/report.pb.h" |
23 #include "chrome/browser/safe_browsing/ui_manager.h" | 23 #include "chrome/browser/safe_browsing/ui_manager.h" |
24 #include "content/public/browser/web_contents_observer.h" | 24 #include "content/public/browser/web_contents_observer.h" |
25 #include "net/base/completion_callback.h" | 25 #include "net/base/completion_callback.h" |
26 | 26 |
27 namespace net { | 27 namespace net { |
28 class URLRequestContextGetter; | 28 class URLRequestContextGetter; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 public: | 156 public: |
157 virtual ~MalwareDetailsFactory() { } | 157 virtual ~MalwareDetailsFactory() { } |
158 | 158 |
159 virtual MalwareDetails* CreateMalwareDetails( | 159 virtual MalwareDetails* CreateMalwareDetails( |
160 SafeBrowsingUIManager* ui_manager, | 160 SafeBrowsingUIManager* ui_manager, |
161 content::WebContents* web_contents, | 161 content::WebContents* web_contents, |
162 const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0; | 162 const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0; |
163 }; | 163 }; |
164 | 164 |
165 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_H_ | 165 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_H_ |
OLD | NEW |