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/safe_browsing_database.h" | 5 #include "chrome/browser/safe_browsing/safe_browsing_database.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <iterator> | 11 #include <iterator> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
18 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
19 #include "base/metrics/histogram_macros.h" | 19 #include "base/metrics/histogram_macros.h" |
20 #include "base/process/process_handle.h" | 20 #include "base/process/process_handle.h" |
21 #include "base/process/process_metrics.h" | 21 #include "base/process/process_metrics.h" |
22 #include "base/sha1.h" | 22 #include "base/sha1.h" |
23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/stringprintf.h" | |
26 #include "base/time/time.h" | 25 #include "base/time/time.h" |
27 #include "build/build_config.h" | 26 #include "build/build_config.h" |
28 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h" | 27 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h" |
29 #include "components/safe_browsing_db/prefix_set.h" | 28 #include "components/safe_browsing_db/prefix_set.h" |
30 #include "components/safe_browsing_db/v4_protocol_manager_util.h" | 29 #include "components/safe_browsing_db/v4_protocol_manager_util.h" |
31 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
32 #include "crypto/sha2.h" | 31 #include "crypto/sha2.h" |
33 #include "net/base/ip_address.h" | 32 #include "net/base/ip_address.h" |
34 #include "url/gurl.h" | 33 #include "url/gurl.h" |
35 | 34 |
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1875 | 1874 |
1876 // Histogram properties as in UMA_HISTOGRAM_COUNTS macro. | 1875 // Histogram properties as in UMA_HISTOGRAM_COUNTS macro. |
1877 base::HistogramBase* histogram_pointer = base::Histogram::FactoryGet( | 1876 base::HistogramBase* histogram_pointer = base::Histogram::FactoryGet( |
1878 histogram_name, 1, 1000000, 50, | 1877 histogram_name, 1, 1000000, 50, |
1879 base::HistogramBase::kUmaTargetedHistogramFlag); | 1878 base::HistogramBase::kUmaTargetedHistogramFlag); |
1880 | 1879 |
1881 histogram_pointer->Add(file_size_kilobytes); | 1880 histogram_pointer->Add(file_size_kilobytes); |
1882 } | 1881 } |
1883 | 1882 |
1884 } // namespace safe_browsing | 1883 } // namespace safe_browsing |
OLD | NEW |