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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1926873002: MediaStream Image Capture (3): Adding mojo and browser impl for dummy takePhoto(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 4061947e26511f2455ba2c8e414f46e0862b9dea..f3554b9a0eddf8ac7244763418cb74c2bfe0f148 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -80,6 +80,7 @@
#include "content/browser/loader/resource_message_filter.h"
#include "content/browser/loader/resource_scheduler_filter.h"
#include "content/browser/media/capture/audio_mirroring_manager.h"
+#include "content/browser/media/capture/image_capture_context.h"
#include "content/browser/media/media_internals.h"
#include "content/browser/media/midi_host.h"
#include "content/browser/memory/memory_message_filter.h"
@@ -572,6 +573,7 @@ RenderProcessHostImpl::RenderProcessHostImpl(
worker_ref_count_(0),
max_worker_count_(0),
permission_service_context_(new PermissionServiceContext(this)),
+ image_capture_context_(new ImageCaptureContext()),
channel_connected_(false),
sent_render_process_ready_(false),
#if defined(OS_ANDROID)
@@ -1072,6 +1074,11 @@ void RenderProcessHostImpl::RegisterMojoServices() {
base::Bind(&PermissionServiceContext::CreateService,
base::Unretained(permission_service_context_.get())));
+ // TODO(mcasas): finalize arguments.
+ mojo_application_host_->service_registry()->AddService(
+ base::Bind(&ImageCaptureContext::CreateService,
+ base::Unretained(image_capture_context_.get())));
+
mojo_application_host_->service_registry()->AddService(base::Bind(
&BackgroundSyncContextImpl::CreateService,
base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));

Powered by Google App Engine
This is Rietveld 408576698