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 "components/domain_reliability/context.h" | 5 #include "components/domain_reliability/context.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/metrics/sparse_histogram.h" | 14 #include "base/metrics/sparse_histogram.h" |
15 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "components/domain_reliability/dispatcher.h" | 17 #include "components/domain_reliability/dispatcher.h" |
18 #include "components/domain_reliability/uploader.h" | 18 #include "components/domain_reliability/uploader.h" |
19 #include "components/domain_reliability/util.h" | 19 #include "components/domain_reliability/util.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "net/url_request/url_request_context_getter.h" | 21 #include "net/url_request/url_request_context_getter.h" |
22 | 22 |
23 using base::DictionaryValue; | 23 using base::DictionaryValue; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 delete beacons_.front(); | 250 delete beacons_.front(); |
251 beacons_.pop_front(); | 251 beacons_.pop_front(); |
252 | 252 |
253 // If that just removed a beacon counted in uploading_beacons_size_, decrement | 253 // If that just removed a beacon counted in uploading_beacons_size_, decrement |
254 // that. | 254 // that. |
255 if (uploading_beacons_size_ > 0) | 255 if (uploading_beacons_size_ > 0) |
256 --uploading_beacons_size_; | 256 --uploading_beacons_size_; |
257 } | 257 } |
258 | 258 |
259 } // namespace domain_reliability | 259 } // namespace domain_reliability |
OLD | NEW |