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/service_manager/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/guid.h" | 13 #include "base/guid.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ptr_util.h" |
16 #include "base/process/process.h" | 17 #include "base/process/process.h" |
17 #include "base/process/process_handle.h" | 18 #include "base/process/process_handle.h" |
18 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
19 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
20 #include "base/trace_event/trace_event.h" | 21 #include "base/trace_event/trace_event.h" |
21 #include "mojo/public/cpp/bindings/associated_binding.h" | 22 #include "mojo/public/cpp/bindings/associated_binding.h" |
22 #include "mojo/public/cpp/bindings/binding.h" | 23 #include "mojo/public/cpp/bindings/binding.h" |
23 #include "mojo/public/cpp/bindings/binding_set.h" | 24 #include "mojo/public/cpp/bindings/binding_set.h" |
24 #include "services/catalog/public/interfaces/constants.mojom.h" | 25 #include "services/catalog/public/interfaces/constants.mojom.h" |
25 #include "services/service_manager/connect_util.h" | 26 #include "services/service_manager/connect_util.h" |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 // Now that the instance has a Service, we can connect to it. | 941 // Now that the instance has a Service, we can connect to it. |
941 bool connected = instance->ConnectToService(¶ms); | 942 bool connected = instance->ConnectToService(¶ms); |
942 DCHECK(connected); | 943 DCHECK(connected); |
943 } | 944 } |
944 | 945 |
945 base::WeakPtr<ServiceManager> ServiceManager::GetWeakPtr() { | 946 base::WeakPtr<ServiceManager> ServiceManager::GetWeakPtr() { |
946 return weak_ptr_factory_.GetWeakPtr(); | 947 return weak_ptr_factory_.GetWeakPtr(); |
947 } | 948 } |
948 | 949 |
949 } // namespace service_manager | 950 } // namespace service_manager |
OLD | NEW |