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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Report a property change without an accompanying event. | 71 // Report a property change without an accompanying event. |
72 void SetStringProperty(const char* key, const std::string& value); | 72 void SetStringProperty(const char* key, const std::string& value); |
73 void SetIntegerProperty(const char* key, int value); | 73 void SetIntegerProperty(const char* key, int value); |
74 void SetDoubleProperty(const char* key, double value); | 74 void SetDoubleProperty(const char* key, double value); |
75 void SetBooleanProperty(const char* key, bool value); | 75 void SetBooleanProperty(const char* key, bool value); |
| 76 void SetTimeProperty(const char* key, base::TimeDelta value); |
76 | 77 |
77 protected: | 78 protected: |
78 friend class base::RefCountedThreadSafe<MediaLog>; | 79 friend class base::RefCountedThreadSafe<MediaLog>; |
79 virtual ~MediaLog(); | 80 virtual ~MediaLog(); |
80 | 81 |
81 private: | 82 private: |
82 // A unique (to this process) id for this MediaLog. | 83 // A unique (to this process) id for this MediaLog. |
83 int32 id_; | 84 int32 id_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(MediaLog); | 86 DISALLOW_COPY_AND_ASSIGN(MediaLog); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace media | 89 } // namespace media |
89 | 90 |
90 #endif // MEDIA_BASE_MEDIA_LOG_H_ | 91 #endif // MEDIA_BASE_MEDIA_LOG_H_ |
OLD | NEW |