Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: chrome/browser/safe_browsing/client_side_detection_host.h

Issue 313073002: Clean-up coding style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase the branch Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 scoped_ptr<BrowseInfo> browse_info_; 156 scoped_ptr<BrowseInfo> browse_info_;
157 // Redirect chain that leads to the first page of the current host. We keep 157 // Redirect chain that leads to the first page of the current host. We keep
158 // track of this for browse_info_. 158 // track of this for browse_info_.
159 std::vector<GURL> cur_host_redirects_; 159 std::vector<GURL> cur_host_redirects_;
160 // Current host, used to help determine cur_host_redirects_. 160 // Current host, used to help determine cur_host_redirects_.
161 std::string cur_host_; 161 std::string cur_host_;
162 // Handles registering notifications with the NotificationService. 162 // Handles registering notifications with the NotificationService.
163 content::NotificationRegistrar registrar_; 163 content::NotificationRegistrar registrar_;
164 164
165 // Max number of ips we save for each browse 165 // Max number of ips we save for each browse
166 static const int kMaxIPsPerBrowse; 166 static const size_t kMaxIPsPerBrowse;
167 // Max number of urls we report for each malware IP. 167 // Max number of urls we report for each malware IP.
168 static const int kMaxUrlsPerIP; 168 static const size_t kMaxUrlsPerIP;
169 169
170 bool should_extract_malware_features_; 170 bool should_extract_malware_features_;
171 bool should_classify_for_malware_; 171 bool should_classify_for_malware_;
172 bool pageload_complete_; 172 bool pageload_complete_;
173 173
174 base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_; 174 base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_;
175 175
176 // Unique page ID of the most recent unsafe site that was loaded in this tab 176 // Unique page ID of the most recent unsafe site that was loaded in this tab
177 // as well as the UnsafeResource. 177 // as well as the UnsafeResource.
178 int unsafe_unique_page_id_; 178 int unsafe_unique_page_id_;
179 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; 179 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_;
180 180
181 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); 181 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost);
182 }; 182 };
183 183
184 } // namespace safe_browsing 184 } // namespace safe_browsing
185 185
186 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 186 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698