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

Side by Side Diff: content/renderer/media/video_capture_impl.h

Issue 7058055: create one video capture message filter per renderer process (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: from code review Created 9 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
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 // VideoCaptureImpl represents a capture device in renderer process. It provides 5 // VideoCaptureImpl represents a capture device in renderer process. It provides
6 // interfaces for clients to Start/Stop capture. It also communicates to clients 6 // interfaces for clients to Start/Stop capture. It also communicates to clients
7 // when buffer is ready, state of capture device is changed. 7 // when buffer is ready, state of capture device is changed.
8 8
9 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 9 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
10 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 10 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 VideoCaptureMessageFilter* filter); 69 VideoCaptureMessageFilter* filter);
70 virtual ~VideoCaptureImpl(); 70 virtual ~VideoCaptureImpl();
71 71
72 void Init(); 72 void Init();
73 void DeInit(Task* task); 73 void DeInit(Task* task);
74 void StopDevice(); 74 void StopDevice();
75 void RestartCapture(); 75 void RestartCapture();
76 void StartCaptureInternal(); 76 void StartCaptureInternal();
77 void AddDelegateOnIOThread(); 77 void AddDelegateOnIOThread();
78 void RemoveDelegateOnIOThread(Task* task); 78 void RemoveDelegateOnIOThread(Task* task);
79 virtual void Send(IPC::Message* message);
79 80
80 scoped_refptr<VideoCaptureMessageFilter> message_filter_; 81 scoped_refptr<VideoCaptureMessageFilter> message_filter_;
81 media::VideoCaptureSessionId session_id_; 82 media::VideoCaptureSessionId session_id_;
82 scoped_refptr<base::MessageLoopProxy> ml_proxy_; 83 scoped_refptr<base::MessageLoopProxy> ml_proxy_;
83 int device_id_; 84 int device_id_;
84 85
85 // Pool of DIBs. 86 // Pool of DIBs.
86 typedef std::list<DIBBuffer*> CachedDIB; 87 typedef std::list<DIBBuffer*> CachedDIB;
87 CachedDIB cached_dibs_; 88 CachedDIB cached_dibs_;
88 89
(...skipping 12 matching lines...) Expand all
101 int new_width_; 102 int new_width_;
102 int new_height_; 103 int new_height_;
103 State state_; 104 State state_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); 106 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl);
106 }; 107 };
107 108
108 DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoCaptureImpl); 109 DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoCaptureImpl);
109 110
110 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 111 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698