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 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // the report. We start the redirection urls collection from history service | 63 // the report. We start the redirection urls collection from history service |
64 // in UI thread; then do cache collection back in IO thread. | 64 // in UI thread; then do cache collection back in IO thread. |
65 // When we are done, we send the report. | 65 // When we are done, we send the report. |
66 void FinishCollection(); | 66 void FinishCollection(); |
67 | 67 |
68 void OnCacheCollectionReady(); | 68 void OnCacheCollectionReady(); |
69 | 69 |
70 void OnRedirectionCollectionReady(); | 70 void OnRedirectionCollectionReady(); |
71 | 71 |
72 // content::WebContentsObserver implementation. | 72 // content::WebContentsObserver implementation. |
73 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 73 virtual bool OnMessageReceived(const IPC::Message& message) override; |
74 | 74 |
75 protected: | 75 protected: |
76 friend class MalwareDetailsFactoryImpl; | 76 friend class MalwareDetailsFactoryImpl; |
77 | 77 |
78 MalwareDetails(SafeBrowsingUIManager* ui_manager, | 78 MalwareDetails(SafeBrowsingUIManager* ui_manager, |
79 content::WebContents* web_contents, | 79 content::WebContents* web_contents, |
80 const UnsafeResource& resource); | 80 const UnsafeResource& resource); |
81 | 81 |
82 virtual ~MalwareDetails(); | 82 virtual ~MalwareDetails(); |
83 | 83 |
(...skipping 72 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 |