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 #ifndef MEDIA_CAST_COMMON_MOD_UTIL_H_ | 5 #ifndef MEDIA_CAST_COMMON_MOD_UTIL_H_ |
6 #define MEDIA_CAST_COMMON_MOD_UTIL_H_ | 6 #define MEDIA_CAST_COMMON_MOD_UTIL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 if (i == ret) | 44 if (i == ret) |
45 return map->end(); | 45 return map->end(); |
46 if ((i->first - ret->first) > ((typename MAP::key_type(0) - 1)) >> 1) | 46 if ((i->first - ret->first) > ((typename MAP::key_type(0) - 1)) >> 1) |
47 return map->end(); | 47 return map->end(); |
48 return ret; | 48 return ret; |
49 } | 49 } |
50 | 50 |
51 } // namespace cast | 51 } // namespace cast |
52 } // namespace media | 52 } // namespace media |
53 | 53 |
54 #endif | 54 #endif // MEDIA_CAST_COMMON_MOD_UTIL_H_ |
OLD | NEW |