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

Side by Side Diff: content/browser/renderer_host/media/media_log_host.h

Issue 7480032: Plumb media data from renderers up to MediaInternals in the browser process. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Much cleanup and making MediaLog thread safe. Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698