| 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> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 std::unique_ptr<MediaLogEvent> CreateBooleanEvent(MediaLogEvent::Type type, | 59 std::unique_ptr<MediaLogEvent> CreateBooleanEvent(MediaLogEvent::Type type, |
| 60 const std::string& property, | 60 const std::string& property, |
| 61 bool value); | 61 bool value); |
| 62 std::unique_ptr<MediaLogEvent> CreateStringEvent(MediaLogEvent::Type type, | 62 std::unique_ptr<MediaLogEvent> CreateStringEvent(MediaLogEvent::Type type, |
| 63 const std::string& property, | 63 const std::string& property, |
| 64 const std::string& value); | 64 const std::string& value); |
| 65 std::unique_ptr<MediaLogEvent> CreateTimeEvent(MediaLogEvent::Type type, | 65 std::unique_ptr<MediaLogEvent> CreateTimeEvent(MediaLogEvent::Type type, |
| 66 const std::string& property, | 66 const std::string& property, |
| 67 base::TimeDelta value); | 67 base::TimeDelta value); |
| 68 std::unique_ptr<MediaLogEvent> CreateLoadEvent(const std::string& url); | 68 std::unique_ptr<MediaLogEvent> CreateLoadEvent(const std::string& url); |
| 69 std::unique_ptr<MediaLogEvent> CreateSeekEvent(float seconds); | 69 std::unique_ptr<MediaLogEvent> CreateSeekEvent(double seconds); |
| 70 std::unique_ptr<MediaLogEvent> CreatePipelineStateChangedEvent( | 70 std::unique_ptr<MediaLogEvent> CreatePipelineStateChangedEvent( |
| 71 PipelineImpl::State state); | 71 PipelineImpl::State state); |
| 72 std::unique_ptr<MediaLogEvent> CreatePipelineErrorEvent(PipelineStatus error); | 72 std::unique_ptr<MediaLogEvent> CreatePipelineErrorEvent(PipelineStatus error); |
| 73 std::unique_ptr<MediaLogEvent> CreateVideoSizeSetEvent(size_t width, | 73 std::unique_ptr<MediaLogEvent> CreateVideoSizeSetEvent(size_t width, |
| 74 size_t height); | 74 size_t height); |
| 75 std::unique_ptr<MediaLogEvent> CreateBufferedExtentsChangedEvent( | 75 std::unique_ptr<MediaLogEvent> CreateBufferedExtentsChangedEvent( |
| 76 int64_t start, | 76 int64_t start, |
| 77 int64_t current, | 77 int64_t current, |
| 78 int64_t end); | 78 int64_t end); |
| 79 | 79 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 #define LIMITED_MEDIA_LOG(level, media_log, count, max) \ | 156 #define LIMITED_MEDIA_LOG(level, media_log, count, max) \ |
| 157 LAZY_STREAM(MEDIA_LOG(level, media_log), \ | 157 LAZY_STREAM(MEDIA_LOG(level, media_log), \ |
| 158 (count) < (max) && ((count)++ || true)) \ | 158 (count) < (max) && ((count)++ || true)) \ |
| 159 << (((count) == (max)) ? "(Log limit reached. Further similar entries " \ | 159 << (((count) == (max)) ? "(Log limit reached. Further similar entries " \ |
| 160 "may be suppressed): " \ | 160 "may be suppressed): " \ |
| 161 : "") | 161 : "") |
| 162 | 162 |
| 163 } // namespace media | 163 } // namespace media |
| 164 | 164 |
| 165 #endif // MEDIA_BASE_MEDIA_LOG_H_ | 165 #endif // MEDIA_BASE_MEDIA_LOG_H_ |
| OLD | NEW |