| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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 <vector> | 33 #include <vector> |
| 34 | 34 |
| 35 #include "chrome/browser/tab_contents/interstitial_page.h" | |
| 36 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 35 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 36 #include "content/browser/tab_contents/interstitial_page.h" |
| 37 #include "googleurl/src/gurl.h" | 37 #include "googleurl/src/gurl.h" |
| 38 | 38 |
| 39 class DictionaryValue; | 39 class DictionaryValue; |
| 40 class MessageLoop; | 40 class MessageLoop; |
| 41 class SafeBrowsingBlockingPageFactory; | 41 class SafeBrowsingBlockingPageFactory; |
| 42 class MalwareDetails; | 42 class MalwareDetails; |
| 43 class TabContents; | 43 class TabContents; |
| 44 | 44 |
| 45 class SafeBrowsingBlockingPage : public InterstitialPage { | 45 class SafeBrowsingBlockingPage : public InterstitialPage { |
| 46 public: | 46 public: |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 public: | 166 public: |
| 167 virtual ~SafeBrowsingBlockingPageFactory() { } | 167 virtual ~SafeBrowsingBlockingPageFactory() { } |
| 168 | 168 |
| 169 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( | 169 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( |
| 170 SafeBrowsingService* service, | 170 SafeBrowsingService* service, |
| 171 TabContents* tab_contents, | 171 TabContents* tab_contents, |
| 172 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; | 172 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ | 175 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ |
| OLD | NEW |