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 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 scoped_ptr<MediaLogEvent> CreatePipelineStateChangedEvent( | 61 scoped_ptr<MediaLogEvent> CreatePipelineStateChangedEvent( |
62 Pipeline::State state); | 62 Pipeline::State state); |
63 scoped_ptr<MediaLogEvent> CreatePipelineErrorEvent(PipelineStatus error); | 63 scoped_ptr<MediaLogEvent> CreatePipelineErrorEvent(PipelineStatus error); |
64 scoped_ptr<MediaLogEvent> CreateVideoSizeSetEvent( | 64 scoped_ptr<MediaLogEvent> CreateVideoSizeSetEvent( |
65 size_t width, size_t height); | 65 size_t width, size_t height); |
66 scoped_ptr<MediaLogEvent> CreateBufferedExtentsChangedEvent( | 66 scoped_ptr<MediaLogEvent> CreateBufferedExtentsChangedEvent( |
67 int64 start, int64 current, int64 end); | 67 int64 start, int64 current, int64 end); |
68 scoped_ptr<MediaLogEvent> CreateMediaSourceErrorEvent( | 68 scoped_ptr<MediaLogEvent> CreateMediaSourceErrorEvent( |
69 const std::string& error); | 69 const std::string& error); |
70 | 70 |
71 void SetStringProperty(const char* key, const std::string& value); | |
scherkus (not reviewing)
2013/08/02 23:18:19
I'd add some docs before this group of methods des
Ty Overby
2013/08/03 00:02:23
Done.
| |
72 void SetIntegerProperty(const char* key, int value); | |
73 void SetDoubleProperty(const char* key, double value); | |
74 void SetBooleanProperty(const char* key, bool value); | |
75 | |
71 protected: | 76 protected: |
72 friend class base::RefCountedThreadSafe<MediaLog>; | 77 friend class base::RefCountedThreadSafe<MediaLog>; |
73 virtual ~MediaLog(); | 78 virtual ~MediaLog(); |
74 | 79 |
75 private: | 80 private: |
76 // A unique (to this process) id for this MediaLog. | 81 // A unique (to this process) id for this MediaLog. |
77 int32 id_; | 82 int32 id_; |
78 | 83 |
79 DISALLOW_COPY_AND_ASSIGN(MediaLog); | 84 DISALLOW_COPY_AND_ASSIGN(MediaLog); |
80 }; | 85 }; |
81 | 86 |
82 } // namespace media | 87 } // namespace media |
83 | 88 |
84 #endif // MEDIA_BASE_MEDIA_LOG_H_ | 89 #endif // MEDIA_BASE_MEDIA_LOG_H_ |
OLD | NEW |