Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_LOG_HOST_H_ | |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_LOG_HOST_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/values.h" | |
| 10 #include "content/browser/browser_message_filter.h" | |
| 11 #include "media/base/media_log.h" | |
| 12 | |
| 13 namespace content { | |
| 14 class ResourceContext; | |
| 15 } // namespace content | |
| 16 | |
| 17 class MediaLogHost : public BrowserMessageFilter { | |
| 18 public: | |
|
jam
2011/07/29 16:08:55
nit: spacing
| |
| 19 MediaLogHost(const content::ResourceContext* resource_context); | |
| 20 | |
| 21 // BrowserMessageFilter implementation. | |
| 22 virtual void OnChannelClosing(); | |
| 23 virtual void OnDestruct() const; | |
| 24 virtual bool OnMessageReceived(const IPC::Message& message, | |
| 25 bool* message_was_ok); | |
| 26 private: | |
| 27 friend class BrowserThread; | |
| 28 friend class DeleteTask<MediaLogHost>; | |
| 29 virtual ~MediaLogHost(); | |
| 30 | |
| 31 // Handle MediaLogMsg_MediaEvent, passing the event off to the MediaObserver. | |
|
jam
2011/07/29 16:08:55
nit: we usually don't comment message handlers. es
| |
| 32 virtual void OnMediaEvent(const media::MediaLog::Event& event); | |
| 33 | |
| 34 const content::ResourceContext* resource_context_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(MediaLogHost); | |
| 37 }; | |
| 38 | |
| 39 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_LOG_HOST_H_ | |
| OLD | NEW |