OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" | 5 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
12 #include "base/format_macros.h" | 14 #include "base/format_macros.h" |
13 #include "base/location.h" | 15 #include "base/location.h" |
14 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
15 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
16 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 // Limit the number of matched bad IPs in one request to control | 485 // Limit the number of matched bad IPs in one request to control |
484 // the request's size | 486 // the request's size |
485 if (matched_bad_ips >= kMaxMalwareIPPerRequest) { | 487 if (matched_bad_ips >= kMaxMalwareIPPerRequest) { |
486 break; | 488 break; |
487 } | 489 } |
488 } | 490 } |
489 callback.Run(true, request.Pass()); | 491 callback.Run(true, request.Pass()); |
490 } | 492 } |
491 | 493 |
492 } // namespace safe_browsing | 494 } // namespace safe_browsing |
OLD | NEW |