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

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

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 // VideoCaptureManager is used to open/close, start/stop, enumerate available 5 // VideoCaptureManager is used to open/close, start/stop, enumerate available
6 // video capture devices, and manage VideoCaptureController's. 6 // video capture devices, and manage VideoCaptureController's.
7 // All functions are expected to be called from Browser::IO thread. Some helper 7 // All functions are expected to be called from Browser::IO thread. Some helper
8 // functions (*OnDeviceThread) will dispatch operations to the device thread. 8 // functions (*OnDeviceThread) will dispatch operations to the device thread.
9 // VideoCaptureManager will open OS dependent instances of VideoCaptureDevice. 9 // VideoCaptureManager will open OS dependent instances of VideoCaptureDevice.
10 // A device can only be opened once. 10 // A device can only be opened once.
(...skipping 28 matching lines...) Expand all
39 // Callback used to signal the completion of a controller lookup. 39 // Callback used to signal the completion of a controller lookup.
40 typedef base::Callback< 40 typedef base::Callback<
41 void(const base::WeakPtr<VideoCaptureController>&)> DoneCB; 41 void(const base::WeakPtr<VideoCaptureController>&)> DoneCB;
42 42
43 explicit VideoCaptureManager( 43 explicit VideoCaptureManager(
44 scoped_ptr<media::VideoCaptureDeviceFactory> factory); 44 scoped_ptr<media::VideoCaptureDeviceFactory> factory);
45 45
46 // Implements MediaStreamProvider. 46 // Implements MediaStreamProvider.
47 virtual void Register(MediaStreamProviderListener* listener, 47 virtual void Register(MediaStreamProviderListener* listener,
48 const scoped_refptr<base::SingleThreadTaskRunner>& 48 const scoped_refptr<base::SingleThreadTaskRunner>&
49 device_task_runner) OVERRIDE; 49 device_task_runner) override;
50 50
51 virtual void Unregister() OVERRIDE; 51 virtual void Unregister() override;
52 52
53 virtual void EnumerateDevices(MediaStreamType stream_type) OVERRIDE; 53 virtual void EnumerateDevices(MediaStreamType stream_type) override;
54 54
55 virtual int Open(const StreamDeviceInfo& device) OVERRIDE; 55 virtual int Open(const StreamDeviceInfo& device) override;
56 56
57 virtual void Close(int capture_session_id) OVERRIDE; 57 virtual void Close(int capture_session_id) override;
58 58
59 // Called by VideoCaptureHost to locate a capture device for |capture_params|, 59 // Called by VideoCaptureHost to locate a capture device for |capture_params|,
60 // adding the Host as a client of the device's controller if successful. The 60 // adding the Host as a client of the device's controller if successful. The
61 // value of |session_id| controls which device is selected; 61 // value of |session_id| controls which device is selected;
62 // this value should be a session id previously returned by Open(). 62 // this value should be a session id previously returned by Open().
63 // 63 //
64 // If the device is not already started (i.e., no other client is currently 64 // If the device is not already started (i.e., no other client is currently
65 // capturing from this device), this call will cause a VideoCaptureController 65 // capturing from this device), this call will cause a VideoCaptureController
66 // and VideoCaptureDevice to be created, possibly asynchronously. 66 // and VideoCaptureDevice to be created, possibly asynchronously.
67 // 67 //
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Accessed on the device thread only. 265 // Accessed on the device thread only.
266 std::map<media::VideoCaptureSessionId, gfx::NativeViewId> 266 std::map<media::VideoCaptureSessionId, gfx::NativeViewId>
267 notification_window_ids_; 267 notification_window_ids_;
268 268
269 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager); 269 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager);
270 }; 270 };
271 271
272 } // namespace content 272 } // namespace content
273 273
274 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ 274 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698