| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 12 #include "media/base/media_log.h" | 13 #include "media/base/media_log.h" |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 | 16 |
| 16 // RenderMediaLog is an implementation of MediaLog that forwards events to the | 17 // RenderMediaLog is an implementation of MediaLog that forwards events to the |
| 17 // browser process, throttling as necessary. | 18 // browser process, throttling as necessary. |
| 18 // | 19 // |
| 19 // To minimize the number of events sent over the wire, only the latest event | 20 // To minimize the number of events sent over the wire, only the latest event |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 | 49 |
| 49 // Limits the number buffered extents changed events we send over IPC to one. | 50 // Limits the number buffered extents changed events we send over IPC to one. |
| 50 scoped_ptr<media::MediaLogEvent> last_buffered_extents_changed_event_; | 51 scoped_ptr<media::MediaLogEvent> last_buffered_extents_changed_event_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); | 53 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace content | 56 } // namespace content |
| 56 | 57 |
| 57 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ | 58 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ |
| OLD | NEW |