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

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

Issue 15906019: Hook up EncodedVideoSource on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_cl_6
Patch Set: 516738a8 IPC/struct changes, courtesy hshi@ Created 7 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
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 24 matching lines...) Expand all
35 // |destroy_cb| is invoked on an outside thread once all outstanding objects 35 // |destroy_cb| is invoked on an outside thread once all outstanding objects
36 // are completely destroyed -- this will be some time after the 36 // are completely destroyed -- this will be some time after the
37 // WebContentsVideoCaptureDevice is itself deleted. 37 // WebContentsVideoCaptureDevice is itself deleted.
38 // TODO(miu): Passing a destroy callback suggests needing to revisit the 38 // TODO(miu): Passing a destroy callback suggests needing to revisit the
39 // design philosophy of an asynchronous DeAllocate(). http://crbug.com/158641 39 // design philosophy of an asynchronous DeAllocate(). http://crbug.com/158641
40 static media::VideoCaptureDevice* Create(const std::string& device_id); 40 static media::VideoCaptureDevice* Create(const std::string& device_id);
41 41
42 virtual ~WebContentsVideoCaptureDevice(); 42 virtual ~WebContentsVideoCaptureDevice();
43 43
44 // VideoCaptureDevice implementation. 44 // VideoCaptureDevice implementation.
45 virtual media::VideoEncodingCapabilities GetEncodingCapabilities() OVERRIDE;
46 virtual void TryConfigureEncodedBitstream(
47 const media::RuntimeVideoEncodingParameters& params) OVERRIDE;
45 virtual void Allocate(int width, 48 virtual void Allocate(int width,
46 int height, 49 int height,
47 int frame_rate, 50 int frame_rate,
48 VideoCaptureDevice::EventHandler* consumer) OVERRIDE; 51 VideoCaptureDevice::EventHandler* consumer) OVERRIDE;
49 virtual void Start() OVERRIDE; 52 virtual void Start() OVERRIDE;
50 virtual void Stop() OVERRIDE; 53 virtual void Stop() OVERRIDE;
51 virtual void DeAllocate() OVERRIDE; 54 virtual void DeAllocate() OVERRIDE;
52 55
53 // Note: The following is just a pass-through of the device_id provided to the 56 // Note: The following is just a pass-through of the device_id provided to the
54 // constructor. It does not change when the content of the page changes 57 // constructor. It does not change when the content of the page changes
(...skipping 11 matching lines...) Expand all
66 Name device_name_; 69 Name device_name_;
67 const scoped_ptr<Impl> impl_; 70 const scoped_ptr<Impl> impl_;
68 71
69 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice); 72 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice);
70 }; 73 };
71 74
72 75
73 } // namespace content 76 } // namespace content
74 77
75 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE _H_ 78 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698