| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BLINK_LRU_H_ | 5 #ifndef MEDIA_BLINK_LRU_H_ |
| 6 #define MEDIA_BLINK_LRU_H_ | 6 #define MEDIA_BLINK_LRU_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // Maps element values to positions in the list so that we | 86 // Maps element values to positions in the list so that we |
| 87 // can quickly remove elements. | 87 // can quickly remove elements. |
| 88 base::hash_map<T, typename std::list<T>::iterator> pos_; | 88 base::hash_map<T, typename std::list<T>::iterator> pos_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(LRU); | 90 DISALLOW_COPY_AND_ASSIGN(LRU); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace media | 93 } // namespace media |
| 94 | 94 |
| 95 #endif // MEDIA_BLINK_LRU_H | 95 #endif // MEDIA_BLINK_LRU_H_ |
| OLD | NEW |