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

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

Issue 2395163002: VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 2 (Closed)
Patch Set: rockot@s comments on renaming and return types Created 4 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 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_host.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_host.h
diff --git a/content/browser/renderer_host/media/video_capture_host.h b/content/browser/renderer_host/media/video_capture_host.h
index df46a5dcd3aa6602924f4396af7c52dfb5c5e1f4..d4e94b1cfb48364e84b9e7cd711c65d01495de3d 100644
--- a/content/browser/renderer_host/media/video_capture_host.h
+++ b/content/browser/renderer_host/media/video_capture_host.h
@@ -12,7 +12,7 @@
//
// Renderer VideoCaptureHost
// | |
-// | VideoCaptureHostMsg_Start > |
+// | --------- StartCapture --------> |
// | < VideoCaptureMsg_StateChanged |
// | (VIDEO_CAPTURE_STATE_STARTED) |
// | < VideoCaptureMsg_NewBuffer(1) |
@@ -110,12 +110,6 @@ class CONTENT_EXPORT VideoCaptureHost
~VideoCaptureHost() override;
// IPC message handlers.
- void OnStartCapture(int device_id,
- media::VideoCaptureSessionId session_id,
- const media::VideoCaptureParams& params);
- void OnResumeCapture(int device_id,
- media::VideoCaptureSessionId session_id,
- const media::VideoCaptureParams& params);
void OnRendererFinishedWithBuffer(int device_id,
int buffer_id,
const gpu::SyncToken& sync_token,
@@ -127,8 +121,14 @@ class CONTENT_EXPORT VideoCaptureHost
media::VideoCaptureSessionId capture_session_id);
// mojom::VideoCaptureHost implementation
+ void Start(int32_t device_id,
+ int32_t session_id,
+ const media::VideoCaptureParams& params) override;
void Stop(int32_t device_id) override;
void Pause(int32_t device_id) override;
+ void Resume(int32_t device_id,
+ int32_t session_id,
+ const media::VideoCaptureParams& params) override;
void RequestRefreshFrame(int32_t device_id) override;
void OnControllerAdded(
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698