| 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 #ifndef MEDIA_BASE_MEDIA_LOG_H_ | 5 #ifndef MEDIA_BASE_MEDIA_LOG_H_ |
| 6 #define MEDIA_BASE_MEDIA_LOG_H_ | 6 #define MEDIA_BASE_MEDIA_LOG_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 8 #include <sstream> | 11 #include <sstream> |
| 9 #include <string> | 12 #include <string> |
| 10 | 13 |
| 11 #include "base/logging.h" | 14 #include "base/logging.h" |
| 12 #include "base/macros.h" | 15 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 15 #include "media/base/media_export.h" | 18 #include "media/base/media_export.h" |
| 16 #include "media/base/media_log_event.h" | 19 #include "media/base/media_log_event.h" |
| 17 #include "media/base/pipeline.h" | 20 #include "media/base/pipeline.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 #define LIMITED_MEDIA_LOG(level, media_log, count, max) \ | 122 #define LIMITED_MEDIA_LOG(level, media_log, count, max) \ |
| 120 LAZY_STREAM(MEDIA_LOG(level, media_log), \ | 123 LAZY_STREAM(MEDIA_LOG(level, media_log), \ |
| 121 (count) < (max) && ((count)++ || true)) \ | 124 (count) < (max) && ((count)++ || true)) \ |
| 122 << (((count) == (max)) ? "(Log limit reached. Further similar entries " \ | 125 << (((count) == (max)) ? "(Log limit reached. Further similar entries " \ |
| 123 "may be suppressed): " \ | 126 "may be suppressed): " \ |
| 124 : "") | 127 : "") |
| 125 | 128 |
| 126 } // namespace media | 129 } // namespace media |
| 127 | 130 |
| 128 #endif // MEDIA_BASE_MEDIA_LOG_H_ | 131 #endif // MEDIA_BASE_MEDIA_LOG_H_ |
| OLD | NEW |