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_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_H_ |
7 | 7 |
8 #include "base/supports_user_data.h" | 8 #include "base/supports_user_data.h" |
9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class NavigationHandle; | 13 class NavigationHandle; |
14 struct ResourceRedirectDetails; | |
15 } | 14 } |
16 | 15 |
17 namespace safe_browsing { | 16 namespace safe_browsing { |
18 class SafeBrowsingNavigationObserverManager; | 17 class SafeBrowsingNavigationObserverManager; |
19 | 18 |
20 // Struct to record the details of a navigation event for any frame. | 19 // Struct to record the details of a navigation event for any frame. |
21 // This information will be used to fill |url_chain| field in safe browsing | 20 // This information will be used to fill |url_chain| field in safe browsing |
22 // download pings. | 21 // download pings. |
23 struct NavigationEvent { | 22 struct NavigationEvent { |
24 NavigationEvent(); | 23 NavigationEvent(); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool has_user_gesture_; | 104 bool has_user_gesture_; |
106 | 105 |
107 base::Time last_user_gesture_timestamp_; | 106 base::Time last_user_gesture_timestamp_; |
108 | 107 |
109 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingNavigationObserver); | 108 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingNavigationObserver); |
110 }; | 109 }; |
111 | 110 |
112 } // namespace safe_browsing | 111 } // namespace safe_browsing |
113 | 112 |
114 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_H_ | 113 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_NAVIGATION_OBSERVER_H_ |
OLD | NEW |