OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Classes for managing the SafeBrowsing interstitial pages. | 5 // Classes for managing the SafeBrowsing interstitial pages. |
6 // | 6 // |
7 // When a user is about to visit a page the SafeBrowsing system has deemed to | 7 // When a user is about to visit a page the SafeBrowsing system has deemed to |
8 // be malicious, either as malware or a phishing page, we show an interstitial | 8 // be malicious, either as malware or a phishing page, we show an interstitial |
9 // page with some options (go back, continue) to give the user a chance to avoid | 9 // page with some options (go back, continue) to give the user a chance to avoid |
10 // the harmful page. | 10 // the harmful page. |
11 // | 11 // |
(...skipping 11 matching lines...) Expand all Loading... |
23 // resource received we show an interstitial. Any subsequent unsafe resource | 23 // resource received we show an interstitial. Any subsequent unsafe resource |
24 // notifications while the first interstitial is showing is queued. If the user | 24 // notifications while the first interstitial is showing is queued. If the user |
25 // decides to proceed in the first interstitial, we display all queued unsafe | 25 // decides to proceed in the first interstitial, we display all queued unsafe |
26 // resources in a new interstitial. | 26 // resources in a new interstitial. |
27 | 27 |
28 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ | 28 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ |
29 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ | 29 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ |
30 #pragma once | 30 #pragma once |
31 | 31 |
32 #include <map> | 32 #include <map> |
| 33 #include <string> |
33 #include <vector> | 34 #include <vector> |
34 | 35 |
| 36 #include "base/gtest_prod_util.h" |
35 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 37 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
36 #include "content/public/browser/interstitial_page_delegate.h" | 38 #include "content/public/browser/interstitial_page_delegate.h" |
37 #include "googleurl/src/gurl.h" | 39 #include "googleurl/src/gurl.h" |
38 | 40 |
39 class MalwareDetails; | 41 class MalwareDetails; |
40 class MessageLoop; | 42 class MessageLoop; |
41 class SafeBrowsingBlockingPageFactory; | 43 class SafeBrowsingBlockingPageFactory; |
42 | 44 |
43 namespace base { | 45 namespace base { |
44 class DictionaryValue; | 46 class DictionaryValue; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 public: | 197 public: |
196 virtual ~SafeBrowsingBlockingPageFactory() { } | 198 virtual ~SafeBrowsingBlockingPageFactory() { } |
197 | 199 |
198 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( | 200 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( |
199 SafeBrowsingService* service, | 201 SafeBrowsingService* service, |
200 content::WebContents* web_contents, | 202 content::WebContents* web_contents, |
201 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; | 203 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; |
202 }; | 204 }; |
203 | 205 |
204 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ | 206 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ |
OLD | NEW |