| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGER_H
_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGER_H
_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGER_H
_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGER_H
_ |
| 7 | 7 |
| 8 #include "content/public/browser/notification_observer.h" | 8 #include "content/public/browser/notification_observer.h" |
| 9 #include "content/public/browser/notification_registrar.h" | 9 #include "content/public/browser/notification_registrar.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace content { | |
| 14 class NavigationHandle; | |
| 15 struct ResourceRedirectDetails; | |
| 16 } | |
| 17 | |
| 18 namespace safe_browsing { | 13 namespace safe_browsing { |
| 19 | 14 |
| 20 class SafeBrowsingNavigationObserver; | 15 class SafeBrowsingNavigationObserver; |
| 21 struct NavigationEvent; | 16 struct NavigationEvent; |
| 22 struct ResolvedIPAddress; | 17 struct ResolvedIPAddress; |
| 23 | 18 |
| 24 // Manager class for SafeBrowsingNavigationObserver, which is in charge of | 19 // Manager class for SafeBrowsingNavigationObserver, which is in charge of |
| 25 // cleaning up stale navigation events, and identifing landing page/landing | 20 // cleaning up stale navigation events, and identifing landing page/landing |
| 26 // referrer for a specific download. | 21 // referrer for a specific download. |
| 27 // TODO(jialiul): For now, SafeBrowsingNavigationObserverManager also listens to | 22 // TODO(jialiul): For now, SafeBrowsingNavigationObserverManager also listens to |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // in URLChainEntry in ClientDownloadRequest. | 106 // in URLChainEntry in ClientDownloadRequest. |
| 112 HostToIpMap host_to_ip_map_; | 107 HostToIpMap host_to_ip_map_; |
| 113 | 108 |
| 114 content::NotificationRegistrar registrar_; | 109 content::NotificationRegistrar registrar_; |
| 115 | 110 |
| 116 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingNavigationObserverManager); | 111 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingNavigationObserverManager); |
| 117 }; | 112 }; |
| 118 } // namespace safe_browsing | 113 } // namespace safe_browsing |
| 119 | 114 |
| 120 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGE
R_H_ | 115 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_MANAGE
R_H_ |
| OLD | NEW |