| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 13 matching lines...) Expand all Loading... |
| 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 | 30 |
| 31 #include <map> | 31 #include <map> |
| 32 #include <vector> | 32 #include <vector> |
| 33 | 33 |
| 34 #include "base/logging.h" | |
| 35 #include "chrome/browser/tab_contents/interstitial_page.h" | 34 #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" |
| 37 #include "googleurl/src/gurl.h" | 36 #include "googleurl/src/gurl.h" |
| 38 | 37 |
| 39 class DictionaryValue; | 38 class DictionaryValue; |
| 40 class MessageLoop; | 39 class MessageLoop; |
| 41 class NavigationController; | 40 class NavigationController; |
| 42 class WebContents; | 41 class WebContents; |
| 43 | 42 |
| 44 | 43 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // is invoked, -1 if not entry should be removed. | 114 // is invoked, -1 if not entry should be removed. |
| 116 int navigation_entry_index_to_remove_; | 115 int navigation_entry_index_to_remove_; |
| 117 | 116 |
| 118 // The list of unsafe resources this page is warning about. | 117 // The list of unsafe resources this page is warning about. |
| 119 UnsafeResourceList unsafe_resources_; | 118 UnsafeResourceList unsafe_resources_; |
| 120 | 119 |
| 121 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage); | 120 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage); |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ | 123 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ |
| OLD | NEW |