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

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

Issue 14582021: Only enable malware IP matching feature for canary and dev channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git pull patch Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/client_side_detection_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Max number of hosts we report for each malware IP. 130 // Max number of hosts we report for each malware IP.
131 static const int kMaxHostsPerIP; 131 static const int kMaxHostsPerIP;
132 132
133 base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_; 133 base::WeakPtrFactory<ClientSideDetectionHost> weak_factory_;
134 134
135 // Unique page ID of the most recent unsafe site that was loaded in this tab 135 // Unique page ID of the most recent unsafe site that was loaded in this tab
136 // as well as the UnsafeResource. 136 // as well as the UnsafeResource.
137 int unsafe_unique_page_id_; 137 int unsafe_unique_page_id_;
138 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_; 138 scoped_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource_;
139 139
140 // Whether the malware bad ip matching and report feature is enabled.
141 bool malware_report_enabled_;
140 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); 142 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost);
141 }; 143 };
142 144
143 } // namespace safe_browsing 145 } // namespace safe_browsing
144 146
145 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 147 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/client_side_detection_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698