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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device.cc

Issue 1503563004: Desktop chrome tab capture-chooseDesktopMedia() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review round 4 Created 5 years 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
Index: content/browser/media/capture/web_contents_video_capture_device.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index 3a432d856c068ed7f638913321e573c37922f0ea..2bc1b496f0076627ccdb3c387735d44a32bec238 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -66,7 +66,6 @@
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
#include "content/browser/media/capture/cursor_renderer.h"
-#include "content/browser/media/capture/web_contents_capture_util.h"
#include "content/browser/media/capture/web_contents_tracker.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
@@ -75,6 +74,7 @@
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/render_widget_host_view_frame_subscriber.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_media_capture_id.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/video_capture_types.h"
#include "media/base/video_util.h"
@@ -893,15 +893,14 @@ media::VideoCaptureDevice* WebContentsVideoCaptureDevice::Create(
// Parse device_id into render_process_id and main_render_frame_id.
int render_process_id = -1;
int main_render_frame_id = -1;
- if (!WebContentsCaptureUtil::ExtractTabCaptureTarget(
- device_id, &render_process_id, &main_render_frame_id)) {
+ if (!WebContentsMediaCaptureId::ExtractTabCaptureTarget(
+ device_id, &render_process_id, &main_render_frame_id)) {
return NULL;
}
return new WebContentsVideoCaptureDevice(
- render_process_id,
- main_render_frame_id,
- WebContentsCaptureUtil::IsAutoThrottlingOptionSet(device_id));
+ render_process_id, main_render_frame_id,
+ WebContentsMediaCaptureId::IsAutoThrottlingOptionSet(device_id));
}
void WebContentsVideoCaptureDevice::AllocateAndStart(

Powered by Google App Engine
This is Rietveld 408576698