OLD | NEW |
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 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1222 AddUIThreadInterface( | 1222 AddUIThreadInterface( |
1223 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); | 1223 registry.get(), base::Bind(&device::BatteryMonitorImpl::Create)); |
1224 AddUIThreadInterface( | 1224 AddUIThreadInterface( |
1225 registry.get(), | 1225 registry.get(), |
1226 base::Bind(&ForwardShapeDetectionRequest< | 1226 base::Bind(&ForwardShapeDetectionRequest< |
1227 shape_detection::mojom::BarcodeDetectionRequest>)); | 1227 shape_detection::mojom::BarcodeDetectionRequest>)); |
1228 AddUIThreadInterface( | 1228 AddUIThreadInterface( |
1229 registry.get(), | 1229 registry.get(), |
1230 base::Bind(&ForwardShapeDetectionRequest< | 1230 base::Bind(&ForwardShapeDetectionRequest< |
1231 shape_detection::mojom::FaceDetectionProviderRequest>)); | 1231 shape_detection::mojom::FaceDetectionProviderRequest>)); |
1232 AddUIThreadInterface( | |
1233 registry.get(), | |
1234 base::Bind(&ForwardShapeDetectionRequest< | |
1235 shape_detection::mojom::TextDetectionRequest>)); | |
1236 #endif | 1232 #endif |
1237 AddUIThreadInterface( | 1233 AddUIThreadInterface( |
1238 registry.get(), | 1234 registry.get(), |
1239 base::Bind(&PermissionServiceContext::CreateService, | 1235 base::Bind(&PermissionServiceContext::CreateService, |
1240 base::Unretained(permission_service_context_.get()))); | 1236 base::Unretained(permission_service_context_.get()))); |
1241 // TODO(mcasas): finalize arguments. | 1237 // TODO(mcasas): finalize arguments. |
1242 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); | 1238 AddUIThreadInterface(registry.get(), base::Bind(&ImageCaptureImpl::Create)); |
1243 | 1239 |
1244 AddUIThreadInterface( | 1240 AddUIThreadInterface( |
1245 registry.get(), | 1241 registry.get(), |
(...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3070 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3066 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3071 | 3067 |
3072 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3068 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3073 // Capture the error message in a crash key value. | 3069 // Capture the error message in a crash key value. |
3074 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3070 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3075 bad_message::ReceivedBadMessage(render_process_id, | 3071 bad_message::ReceivedBadMessage(render_process_id, |
3076 bad_message::RPH_MOJO_PROCESS_ERROR); | 3072 bad_message::RPH_MOJO_PROCESS_ERROR); |
3077 } | 3073 } |
3078 | 3074 |
3079 } // namespace content | 3075 } // namespace content |
OLD | NEW |