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