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 "content/browser/histogram_synchronizer.h" | 5 #include "content/browser/histogram_synchronizer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/metrics/histogram.h" | |
12 #include "base/metrics/histogram_delta_serialization.h" | 11 #include "base/metrics/histogram_delta_serialization.h" |
| 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/pickle.h" | 13 #include "base/pickle.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
16 #include "base/threading/thread_restrictions.h" | 16 #include "base/threading/thread_restrictions.h" |
17 #include "content/browser/histogram_controller.h" | 17 #include "content/browser/histogram_controller.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/histogram_fetcher.h" | 19 #include "content/public/browser/histogram_fetcher.h" |
20 #include "content/public/common/content_constants.h" | 20 #include "content/public/common/content_constants.h" |
21 | 21 |
22 using base::Time; | 22 using base::Time; |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 kHistogramSynchronizerReservedSequenceNumber + 1; | 337 kHistogramSynchronizerReservedSequenceNumber + 1; |
338 } | 338 } |
339 DCHECK_NE(last_used_sequence_number_, | 339 DCHECK_NE(last_used_sequence_number_, |
340 kHistogramSynchronizerReservedSequenceNumber); | 340 kHistogramSynchronizerReservedSequenceNumber); |
341 if (requester == ASYNC_HISTOGRAMS) | 341 if (requester == ASYNC_HISTOGRAMS) |
342 async_sequence_number_ = last_used_sequence_number_; | 342 async_sequence_number_ = last_used_sequence_number_; |
343 return last_used_sequence_number_; | 343 return last_used_sequence_number_; |
344 } | 344 } |
345 | 345 |
346 } // namespace content | 346 } // namespace content |
OLD | NEW |