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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2655303005: Shape detection service: Add QR detection in Mac (Closed)
Patch Set: rsesek@ comments Created 3 years, 10 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" 212 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h"
213 #include "content/common/font_cache_dispatcher_win.h" 213 #include "content/common/font_cache_dispatcher_win.h"
214 #include "content/common/sandbox_win.h" 214 #include "content/common/sandbox_win.h"
215 #include "sandbox/win/src/sandbox_policy.h" 215 #include "sandbox/win/src/sandbox_policy.h"
216 #include "ui/display/win/dpi.h" 216 #include "ui/display/win/dpi.h"
217 #endif 217 #endif
218 218
219 #if defined(OS_MACOSX) 219 #if defined(OS_MACOSX)
220 #include "content/browser/bootstrap_sandbox_manager_mac.h" 220 #include "content/browser/bootstrap_sandbox_manager_mac.h"
221 #include "content/browser/mach_broker_mac.h" 221 #include "content/browser/mach_broker_mac.h"
222 #include "content/browser/shapedetection/face_detection_service_dispatcher.h" 222 #include "content/browser/shapedetection/shape_detection_service_dispatcher.h"
223 #endif 223 #endif
224 224
225 #if defined(OS_POSIX) 225 #if defined(OS_POSIX)
226 #include "content/browser/zygote_host/zygote_communication_linux.h" 226 #include "content/browser/zygote_host/zygote_communication_linux.h"
227 #include "content/browser/zygote_host/zygote_host_impl_linux.h" 227 #include "content/browser/zygote_host/zygote_host_impl_linux.h"
228 #include "content/public/browser/zygote_handle_linux.h" 228 #include "content/public/browser/zygote_handle_linux.h"
229 #endif // defined(OS_POSIX) 229 #endif // defined(OS_POSIX)
230 230
231 #if defined(USE_OZONE) 231 #if defined(USE_OZONE)
232 #include "ui/ozone/public/ozone_switches.h" 232 #include "ui/ozone/public/ozone_switches.h"
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 void RenderProcessHostImpl::RegisterMojoInterfaces() { 1193 void RenderProcessHostImpl::RegisterMojoInterfaces() {
1194 auto registry = base::MakeUnique<service_manager::InterfaceRegistry>( 1194 auto registry = base::MakeUnique<service_manager::InterfaceRegistry>(
1195 service_manager::mojom::kServiceManager_ConnectorSpec); 1195 service_manager::mojom::kServiceManager_ConnectorSpec);
1196 1196
1197 channel_->AddAssociatedInterfaceForIOThread( 1197 channel_->AddAssociatedInterfaceForIOThread(
1198 base::Bind(&IndexedDBDispatcherHost::AddBinding, indexed_db_factory_)); 1198 base::Bind(&IndexedDBDispatcherHost::AddBinding, indexed_db_factory_));
1199 1199
1200 #if defined(OS_MACOSX) 1200 #if defined(OS_MACOSX)
1201 AddUIThreadInterface( 1201 AddUIThreadInterface(
1202 registry.get(), 1202 registry.get(),
1203 base::Bind(&FaceDetectionServiceDispatcher::CreateMojoService)); 1203 base::Bind(&ShapeDetectionServiceDispatcher::CreateFaceMojoService));
1204 AddUIThreadInterface(
Ken Rockot(use gerrit already) 2017/02/01 21:01:07 Note that in both of these cases, trying to use th
mcasas 2017/02/02 19:40:33 True. What we want is, in non-Android, to route t
1205 registry.get(),
1206 base::Bind(&ShapeDetectionServiceDispatcher::CreateBarcodeMojoService));
1204 #endif 1207 #endif
1205 1208
1206 #if defined(OS_ANDROID) 1209 #if defined(OS_ANDROID)
1207 AddUIThreadInterface(registry.get(), 1210 AddUIThreadInterface(registry.get(),
1208 GetGlobalJavaInterfaces() 1211 GetGlobalJavaInterfaces()
1209 ->CreateInterfaceFactory<device::BatteryMonitor>()); 1212 ->CreateInterfaceFactory<device::BatteryMonitor>());
1210 AddUIThreadInterface( 1213 AddUIThreadInterface(
1211 registry.get(), GetGlobalJavaInterfaces() 1214 registry.get(), GetGlobalJavaInterfaces()
1212 ->CreateInterfaceFactory< 1215 ->CreateInterfaceFactory<
1213 shape_detection::mojom::FaceDetectionProvider>()); 1216 shape_detection::mojom::FaceDetectionProvider>());
(...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after
3056 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3059 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3057 3060
3058 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3061 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3059 // Capture the error message in a crash key value. 3062 // Capture the error message in a crash key value.
3060 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3063 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3061 bad_message::ReceivedBadMessage(render_process_id, 3064 bad_message::ReceivedBadMessage(render_process_id,
3062 bad_message::RPH_MOJO_PROCESS_ERROR); 3065 bad_message::RPH_MOJO_PROCESS_ERROR);
3063 } 3066 }
3064 3067
3065 } // namespace content 3068 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698