Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: media/base/media_log.h

Issue 13870004: Expose MEDIA_STATISTICS stats to chrome://media-internals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/base/media_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 scoped_ptr<MediaLogEvent> CreateSeekEvent(float seconds); 60 scoped_ptr<MediaLogEvent> CreateSeekEvent(float seconds);
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 size_t start, size_t current, size_t end); 67 size_t start, size_t current, size_t end);
68 scoped_ptr<MediaLogEvent> CreateMediaSourceErrorEvent( 68 scoped_ptr<MediaLogEvent> CreateMediaSourceErrorEvent(
69 const std::string& error); 69 const std::string& error);
70 scoped_ptr<MediaLogEvent> CreatePipelineStatisticsChangedEvent(
71 const PipelineStatistics& stats);
70 72
71 protected: 73 protected:
72 friend class base::RefCountedThreadSafe<MediaLog>; 74 friend class base::RefCountedThreadSafe<MediaLog>;
73 virtual ~MediaLog(); 75 virtual ~MediaLog();
74 76
75 private: 77 private:
76 // A unique (to this process) id for this MediaLog. 78 // A unique (to this process) id for this MediaLog.
77 int32 id_; 79 int32 id_;
78 80
79 DISALLOW_COPY_AND_ASSIGN(MediaLog); 81 DISALLOW_COPY_AND_ASSIGN(MediaLog);
80 }; 82 };
81 83
82 } // namespace media 84 } // namespace media
83 85
84 #endif // MEDIA_BASE_MEDIA_LOG_H_ 86 #endif // MEDIA_BASE_MEDIA_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/media_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698