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

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

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing compilation errors Created 6 years, 6 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
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 // VideoCaptureHost serves video capture related messages from 5 // VideoCaptureHost serves video capture related messages from
6 // VideoCaptureMessageFilter which lives inside the render process. 6 // VideoCaptureMessageFilter which lives inside the render process.
7 // 7 //
8 // This class is owned by RenderProcessHostImpl, and instantiated on UI 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI
9 // thread, but all other operations and method calls happen on IO thread. 9 // thread, but all other operations and method calls happen on IO thread.
10 // 10 //
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 namespace content { 64 namespace content {
65 class MediaStreamManager; 65 class MediaStreamManager;
66 66
67 class CONTENT_EXPORT VideoCaptureHost 67 class CONTENT_EXPORT VideoCaptureHost
68 : public BrowserMessageFilter, 68 : public BrowserMessageFilter,
69 public VideoCaptureControllerEventHandler { 69 public VideoCaptureControllerEventHandler {
70 public: 70 public:
71 explicit VideoCaptureHost(MediaStreamManager* media_stream_manager); 71 explicit VideoCaptureHost(MediaStreamManager* media_stream_manager);
72 72
73 // BrowserMessageFilter implementation. 73 // BrowserMessageFilter implementation.
74 virtual void OnChannelClosing() OVERRIDE; 74 virtual void OnSenderClosing() OVERRIDE;
75 virtual void OnDestruct() const OVERRIDE; 75 virtual void OnDestruct() const OVERRIDE;
76 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 76 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
77 77
78 // VideoCaptureControllerEventHandler implementation. 78 // VideoCaptureControllerEventHandler implementation.
79 virtual void OnError(const VideoCaptureControllerID& id) OVERRIDE; 79 virtual void OnError(const VideoCaptureControllerID& id) OVERRIDE;
80 virtual void OnBufferCreated(const VideoCaptureControllerID& id, 80 virtual void OnBufferCreated(const VideoCaptureControllerID& id,
81 base::SharedMemoryHandle handle, 81 base::SharedMemoryHandle handle,
82 int length, 82 int length,
83 int buffer_id) OVERRIDE; 83 int buffer_id) OVERRIDE;
84 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id, 84 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // is connected. An entry in this map holds a null controller while it is in 186 // is connected. An entry in this map holds a null controller while it is in
187 // the process of starting. 187 // the process of starting.
188 EntryMap entries_; 188 EntryMap entries_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 190 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
191 }; 191 };
192 192
193 } // namespace content 193 } // namespace content
194 194
195 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 195 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698