| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "net/reporting/reporting_service.h" | 5 #include "net/reporting/reporting_service.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> |
| 8 | 9 |
| 9 #include "base/bind.h" | 10 #include "base/bind.h" |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 12 #include "base/time/tick_clock.h" | 13 #include "base/time/tick_clock.h" |
| 13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 14 #include "base/values.h" | 15 #include "base/values.h" |
| 15 #include "net/reporting/reporting_browsing_data_remover.h" | 16 #include "net/reporting/reporting_browsing_data_remover.h" |
| 16 #include "net/reporting/reporting_cache.h" | 17 #include "net/reporting/reporting_cache.h" |
| 17 #include "net/reporting/reporting_context.h" | 18 #include "net/reporting/reporting_context.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 ReportingContext::Create(policy, request_context)); | 69 ReportingContext::Create(policy, request_context)); |
| 69 } | 70 } |
| 70 | 71 |
| 71 // static | 72 // static |
| 72 std::unique_ptr<ReportingService> ReportingService::CreateForTesting( | 73 std::unique_ptr<ReportingService> ReportingService::CreateForTesting( |
| 73 std::unique_ptr<ReportingContext> reporting_context) { | 74 std::unique_ptr<ReportingContext> reporting_context) { |
| 74 return base::MakeUnique<ReportingServiceImpl>(std::move(reporting_context)); | 75 return base::MakeUnique<ReportingServiceImpl>(std::move(reporting_context)); |
| 75 } | 76 } |
| 76 | 77 |
| 77 } // namespace net | 78 } // namespace net |
| OLD | NEW |