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/copresence/handlers/audio/audio_directive_handler_impl.h" | 5 #include "components/copresence/handlers/audio/audio_directive_handler_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
13 #include "base/time/default_tick_clock.h" | 15 #include "base/time/default_tick_clock.h" |
14 #include "base/time/time.h" | 16 #include "base/time/time.h" |
15 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
16 #include "components/audio_modem/public/modem.h" | 18 #include "components/audio_modem/public/modem.h" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 231 |
230 *expiry = GetEarliestEventTime(transmits_lists_[AUDIBLE], base::TimeTicks()); | 232 *expiry = GetEarliestEventTime(transmits_lists_[AUDIBLE], base::TimeTicks()); |
231 *expiry = GetEarliestEventTime(transmits_lists_[INAUDIBLE], *expiry); | 233 *expiry = GetEarliestEventTime(transmits_lists_[INAUDIBLE], *expiry); |
232 *expiry = GetEarliestEventTime(receives_lists_[AUDIBLE], *expiry); | 234 *expiry = GetEarliestEventTime(receives_lists_[AUDIBLE], *expiry); |
233 *expiry = GetEarliestEventTime(receives_lists_[INAUDIBLE], *expiry); | 235 *expiry = GetEarliestEventTime(receives_lists_[INAUDIBLE], *expiry); |
234 | 236 |
235 return !expiry->is_null(); | 237 return !expiry->is_null(); |
236 } | 238 } |
237 | 239 |
238 } // namespace copresence | 240 } // namespace copresence |
OLD | NEW |