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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.h

Issue 1017503002: VideoCaptureHost/VideoCaptureControllerEventHandler cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded BindToCurrentLoop() Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_capture_controller.h
diff --git a/content/browser/renderer_host/media/video_capture_controller.h b/content/browser/renderer_host/media/video_capture_controller.h
index b9b1285357c86e0fce67f57c5f4f14ba4ed9a1e1..2954688bd8d8fa074949d27c97f076d8aa74e997 100644
--- a/content/browser/renderer_host/media/video_capture_controller.h
+++ b/content/browser/renderer_host/media/video_capture_controller.h
@@ -78,7 +78,7 @@ class CONTENT_EXPORT VideoCaptureController {
// Start video capturing and try to use the resolution specified in |params|.
// Buffers will be shared to the client as necessary. The client will continue
// to receive frames from the device until RemoveClient() is called.
- void AddClient(const VideoCaptureControllerID& id,
+ void AddClient(VideoCaptureControllerID id,
VideoCaptureControllerEventHandler* event_handler,
base::ProcessHandle render_process,
media::VideoCaptureSessionId session_id,
@@ -88,11 +88,11 @@ class CONTENT_EXPORT VideoCaptureController {
// |event_handler|, and |event_handler| shouldn't use those buffers any more.
// Returns the session_id of the stopped client, or
// kInvalidMediaCaptureSessionId if the indicated client was not registered.
- int RemoveClient(const VideoCaptureControllerID& id,
+ int RemoveClient(VideoCaptureControllerID id,
VideoCaptureControllerEventHandler* event_handler);
// Pause or resume the video capture for specified client.
- void PauseOrResumeClient(const VideoCaptureControllerID& id,
+ void PauseOrResumeClient(VideoCaptureControllerID id,
VideoCaptureControllerEventHandler* event_handler,
bool pause);
@@ -110,7 +110,7 @@ class CONTENT_EXPORT VideoCaptureController {
// buffer was backed by a texture, |sync_point| will be waited on before
// destroying or recycling the texture, to synchronize with texture users in
// the renderer process.
- void ReturnBuffer(const VideoCaptureControllerID& id,
+ void ReturnBuffer(VideoCaptureControllerID id,
VideoCaptureControllerEventHandler* event_handler,
int buffer_id,
uint32 sync_point);
@@ -133,7 +133,7 @@ class CONTENT_EXPORT VideoCaptureController {
typedef std::list<ControllerClient*> ControllerClients;
// Find a client of |id| and |handler| in |clients|.
- ControllerClient* FindClient(const VideoCaptureControllerID& id,
+ ControllerClient* FindClient(VideoCaptureControllerID id,
VideoCaptureControllerEventHandler* handler,
const ControllerClients& clients);
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698