OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CLIENT_SIDE_DETECTION_HOST_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Keeps some info about the current page visit while the renderer | 110 // Keeps some info about the current page visit while the renderer |
111 // classification is going on. Since we cancel classification on | 111 // classification is going on. Since we cancel classification on |
112 // every page load we can simply keep this data around as a member | 112 // every page load we can simply keep this data around as a member |
113 // variable. This information will be passed on to the feature extractor. | 113 // variable. This information will be passed on to the feature extractor. |
114 scoped_ptr<BrowseInfo> browse_info_; | 114 scoped_ptr<BrowseInfo> browse_info_; |
115 // Handles registering notifications with the NotificationService. | 115 // Handles registering notifications with the NotificationService. |
116 NotificationRegistrar registrar_; | 116 NotificationRegistrar registrar_; |
117 | 117 |
118 base::ScopedCallbackFactory<ClientSideDetectionHost> cb_factory_; | 118 base::ScopedCallbackFactory<ClientSideDetectionHost> cb_factory_; |
119 | 119 |
120 // Unique page ID of the most recent unsafe site that was loaded in this tab. | 120 // Unique page ID of the most recent unsafe site that was loaded in this tab |
| 121 // as well as the UnsafeResource. |
121 int unsafe_unique_page_id_; | 122 int unsafe_unique_page_id_; |
| 123 scoped_ptr<SafeBrowsingService::UnsafeResource> unsafe_resource_; |
122 | 124 |
123 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); | 125 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); |
124 }; | 126 }; |
125 | 127 |
126 } // namespace safe_browsing | 128 } // namespace safe_browsing |
127 | 129 |
128 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ | 130 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ |
OLD | NEW |