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

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

Issue 14999008: Add a killswitch for CSD malware IP match and report feature. Use a new killswitch whitelist URL wh… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the bug of 'and' -> && Created 7 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 | 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 IP matching feature killswitch is on.
141 bool malware_killswitch_on_;
142
140 // Whether the malware bad ip matching and report feature is enabled. 143 // Whether the malware bad ip matching and report feature is enabled.
141 bool malware_report_enabled_; 144 bool malware_report_enabled_;
145
142 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); 146 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost);
143 }; 147 };
144 148
145 } // namespace safe_browsing 149 } // namespace safe_browsing
146 150
147 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 151 #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