OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "services/shell/service_manager.h" | 5 #include "services/service_manager/service_manager.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/debug/alias.h" | 13 #include "base/debug/alias.h" |
14 #include "base/guid.h" | 14 #include "base/guid.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/process/process.h" | 17 #include "base/process/process.h" |
18 #include "base/process/process_handle.h" | 18 #include "base/process/process_handle.h" |
19 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
21 #include "base/trace_event/trace_event.h" | 21 #include "base/trace_event/trace_event.h" |
22 #include "mojo/public/cpp/bindings/binding.h" | 22 #include "mojo/public/cpp/bindings/binding.h" |
23 #include "mojo/public/cpp/bindings/binding_set.h" | 23 #include "mojo/public/cpp/bindings/binding_set.h" |
24 #include "services/shell/connect_util.h" | 24 #include "services/service_manager/connect_util.h" |
25 #include "services/shell/public/cpp/connector.h" | 25 #include "services/service_manager/public/cpp/connector.h" |
26 #include "services/shell/public/cpp/names.h" | 26 #include "services/service_manager/public/cpp/names.h" |
27 #include "services/shell/public/cpp/service_context.h" | 27 #include "services/service_manager/public/cpp/service_context.h" |
28 #include "services/shell/public/interfaces/connector.mojom.h" | 28 #include "services/service_manager/public/interfaces/connector.mojom.h" |
29 #include "services/shell/public/interfaces/service.mojom.h" | 29 #include "services/service_manager/public/interfaces/service.mojom.h" |
30 #include "services/shell/public/interfaces/service_manager.mojom.h" | 30 #include "services/service_manager/public/interfaces/service_manager.mojom.h" |
31 | 31 |
32 namespace shell { | 32 namespace shell { |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 const char kCatalogName[] = "service:catalog"; | 36 const char kCatalogName[] = "service:catalog"; |
37 const char kServiceManagerName[] = "service:shell"; | 37 const char kServiceManagerName[] = "service:shell"; |
38 const char kCapabilityClass_UserID[] = "shell:user_id"; | 38 const char kCapabilityClass_UserID[] = "shell:user_id"; |
39 const char kCapabilityClass_ClientProcess[] = "shell:client_process"; | 39 const char kCapabilityClass_ClientProcess[] = "shell:client_process"; |
40 const char kCapabilityClass_InstanceName[] = "shell:instance_name"; | 40 const char kCapabilityClass_InstanceName[] = "shell:instance_name"; |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 // Now that the instance has a Service, we can connect to it. | 874 // Now that the instance has a Service, we can connect to it. |
875 bool connected = instance->ConnectToService(¶ms); | 875 bool connected = instance->ConnectToService(¶ms); |
876 DCHECK(connected); | 876 DCHECK(connected); |
877 } | 877 } |
878 | 878 |
879 base::WeakPtr<ServiceManager> ServiceManager::GetWeakPtr() { | 879 base::WeakPtr<ServiceManager> ServiceManager::GetWeakPtr() { |
880 return weak_ptr_factory_.GetWeakPtr(); | 880 return weak_ptr_factory_.GetWeakPtr(); |
881 } | 881 } |
882 | 882 |
883 } // namespace shell | 883 } // namespace shell |
OLD | NEW |