| 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_list.h" | 5 #include "components/copresence/handlers/audio/audio_directive_list.h" |
| 6 | 6 |
| 7 #include <algorithm> |
| 8 |
| 7 namespace copresence { | 9 namespace copresence { |
| 8 | 10 |
| 9 // Public functions. | 11 // Public functions. |
| 10 | 12 |
| 11 AudioDirective::AudioDirective() {} | 13 AudioDirective::AudioDirective() {} |
| 12 | 14 |
| 13 AudioDirective::AudioDirective(const std::string& op_id, | 15 AudioDirective::AudioDirective(const std::string& op_id, |
| 14 base::TimeTicks end_time, | 16 base::TimeTicks end_time, |
| 15 const Directive& server_directive) | 17 const Directive& server_directive) |
| 16 : op_id(op_id), | 18 : op_id(op_id), |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 for (auto it = active_directives_.begin(); | 82 for (auto it = active_directives_.begin(); |
| 81 it != active_directives_.end(); | 83 it != active_directives_.end(); |
| 82 ++it) { | 84 ++it) { |
| 83 if (it->op_id == op_id) | 85 if (it->op_id == op_id) |
| 84 return it; | 86 return it; |
| 85 } | 87 } |
| 86 return active_directives_.end(); | 88 return active_directives_.end(); |
| 87 } | 89 } |
| 88 | 90 |
| 89 } // namespace copresence | 91 } // namespace copresence |
| OLD | NEW |