| 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 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 Loading... |
| 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_ |
| OLD | NEW |