|
Revise InterfaceRegistry API to support filtering interfaces @ Bind() time.
InterfaceRegistry is now constructed with local service info: the local service identity and the spec exposed via the IR.
Later, Bind() is called with the IPRequest & the remote service identity & spec.
This moves interface intersection logic of specs to the client library from the service manager, & removes the allowed_interfaces and allowed_capabilities parameters from service.mojom:Service::OnConnect() which are now redundant.
Hooks this up for connection-level specs in service manager & client library (service_context.cc
R=rockot@chromium.org,tsepez@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/c87e52bc73fe59a5d460cd2e60ff7838f79d8ebf
Cr-Commit-Position: refs/heads/master@{#427771}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+190 lines, -170 lines) |
Patch |
 |
M |
content/browser/frame_host/render_frame_host_impl.cc
|
View
|
1
2
3
|
4 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_instance.cc
|
View
|
1
2
3
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/service_worker/embedded_worker_test_helper.cc
|
View
|
1
2
3
|
2 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/child/child_thread_impl.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_render_thread.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_instance_client_impl.cc
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/service_worker_context_client.cc
|
View
|
1
2
3
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ios/web/web_state/web_state_impl.mm
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ios/web/webui/mojo_facade_unittest.mm
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/catalog/manifest.json
|
View
|
1
2
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/manifest.json
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/public/cpp/identity.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
services/service_manager/public/cpp/interface_registry.h
|
View
|
1
2
3
|
2 chunks |
+19 lines, -13 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/public/cpp/lib/identity.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/public/cpp/lib/interface_registry.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+74 lines, -13 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/public/cpp/lib/service_context.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+16 lines, -8 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/public/cpp/service_context.h
|
View
|
1
2
|
3 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/public/cpp/tests/interface_registry_unittest.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/public/interfaces/service.mojom
|
View
|
1
2
|
1 chunk |
+1 line, -15 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/service_manager.cc
|
View
|
1
2
|
3 chunks |
+2 lines, -61 lines |
0 comments
|
Download
|
 |
M |
services/service_manager/tests/connect/connect_test_class_app_manifest.json
|
View
|
1
2
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/manifest.json
|
View
|
1
2
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 57 (41 generated)
|