OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/incident_reporting/incident_reporting_ser
vice.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser
vice.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.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/metrics/field_trial.h" | 18 #include "base/metrics/field_trial.h" |
19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/test/mock_entropy_provider.h" | 21 #include "base/test/mock_entropy_provider.h" |
22 #include "base/test/test_simple_task_runner.h" | 22 #include "base/test/test_simple_task_runner.h" |
23 #include "base/thread_task_runner_handle.h" | |
24 #include "base/threading/thread_local.h" | 23 #include "base/threading/thread_local.h" |
| 24 #include "base/threading/thread_task_runner_handle.h" |
25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
26 #include "chrome/browser/prefs/browser_prefs.h" | 26 #include "chrome/browser/prefs/browser_prefs.h" |
27 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" | 27 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" |
28 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 28 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
29 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er.h" | 29 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er.h" |
30 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h
" | 30 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h
" |
31 #include "chrome/browser/safe_browsing/incident_reporting/tracked_preference_inc
ident.h" | 31 #include "chrome/browser/safe_browsing/incident_reporting/tracked_preference_inc
ident.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "chrome/common/safe_browsing/csd.pb.h" | 33 #include "chrome/common/safe_browsing/csd.pb.h" |
34 #include "chrome/test/base/testing_browser_process.h" | 34 #include "chrome/test/base/testing_browser_process.h" |
(...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1485 | 1485 |
1486 // Ensure that no report processing remains. | 1486 // Ensure that no report processing remains. |
1487 ASSERT_FALSE(instance_->IsProcessingReport()); | 1487 ASSERT_FALSE(instance_->IsProcessingReport()); |
1488 } | 1488 } |
1489 | 1489 |
1490 // Parallel uploads | 1490 // Parallel uploads |
1491 // Shutdown during processing | 1491 // Shutdown during processing |
1492 // environment colection taking longer than incident delay timer | 1492 // environment colection taking longer than incident delay timer |
1493 // environment colection taking longer than incident delay timer, and then | 1493 // environment colection taking longer than incident delay timer, and then |
1494 // another incident arriving | 1494 // another incident arriving |
OLD | NEW |