| 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.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" | 25 #include "base/strings/stringprintf.h" |
| 26 #include "base/time/time.h" | 26 #include "base/time/time.h" |
| 27 #include "build/build_config.h" | 27 #include "build/build_config.h" |
| 28 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h" | 28 #include "chrome/browser/safe_browsing/safe_browsing_store_file.h" |
| 29 #include "components/safe_browsing_db/prefix_set.h" | 29 #include "components/safe_browsing_db/prefix_set.h" |
| (...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1877 | 1877 |
| 1878 // Histogram properties as in UMA_HISTOGRAM_COUNTS macro. | 1878 // Histogram properties as in UMA_HISTOGRAM_COUNTS macro. |
| 1879 base::HistogramBase* histogram_pointer = base::Histogram::FactoryGet( | 1879 base::HistogramBase* histogram_pointer = base::Histogram::FactoryGet( |
| 1880 histogram_name, 1, 1000000, 50, | 1880 histogram_name, 1, 1000000, 50, |
| 1881 base::HistogramBase::kUmaTargetedHistogramFlag); | 1881 base::HistogramBase::kUmaTargetedHistogramFlag); |
| 1882 | 1882 |
| 1883 histogram_pointer->Add(file_size_kilobytes); | 1883 histogram_pointer->Add(file_size_kilobytes); |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 } // namespace safe_browsing | 1886 } // namespace safe_browsing |
| OLD | NEW |