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

Side by Side Diff: content/renderer/media/render_media_log.h

Issue 2645953004: Update duration when demuxed packets exceed known duration. (Closed)
Patch Set: Remove broken CGI server. Rate limit duration changed events. Created 3 years, 10 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
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 CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_
6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // sequence for throttled send on |task_runner_| and coherent retrieval by 62 // sequence for throttled send on |task_runner_| and coherent retrieval by
63 // GetLastErrorMessage(). 63 // GetLastErrorMessage().
64 mutable base::Lock lock_; 64 mutable base::Lock lock_;
65 std::unique_ptr<base::TickClock> tick_clock_; 65 std::unique_ptr<base::TickClock> tick_clock_;
66 base::TimeTicks last_ipc_send_time_; 66 base::TimeTicks last_ipc_send_time_;
67 std::vector<media::MediaLogEvent> queued_media_events_; 67 std::vector<media::MediaLogEvent> queued_media_events_;
68 68
69 // For enforcing max 1 pending send. 69 // For enforcing max 1 pending send.
70 bool ipc_send_pending_; 70 bool ipc_send_pending_;
71 71
72 // Limits the number buffered extents changed events we send over IPC to one. 72 // Limits the number of events we send over IPC to one.
73 std::unique_ptr<media::MediaLogEvent> last_buffered_extents_changed_event_; 73 std::unique_ptr<media::MediaLogEvent> last_buffered_extents_changed_event_;
74 std::unique_ptr<media::MediaLogEvent> last_duration_changed_event_;
74 75
75 // Holds a copy of the most recent MEDIA_ERROR_LOG_ENTRY, if any. 76 // Holds a copy of the most recent MEDIA_ERROR_LOG_ENTRY, if any.
76 std::unique_ptr<media::MediaLogEvent> last_media_error_log_entry_; 77 std::unique_ptr<media::MediaLogEvent> last_media_error_log_entry_;
77 78
78 // Holds a copy of the most recent PIPELINE_ERROR, if any. 79 // Holds a copy of the most recent PIPELINE_ERROR, if any.
79 std::unique_ptr<media::MediaLogEvent> last_pipeline_error_; 80 std::unique_ptr<media::MediaLogEvent> last_pipeline_error_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); 82 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog);
82 }; 83 };
83 84
84 } // namespace content 85 } // namespace content
85 86
86 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ 87 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/render_media_log.cc » ('j') | media/filters/ffmpeg_demuxer_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698