OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/tests/lifecycle/app_client.h" | 5 #include "services/service_manager/tests/lifecycle/app_client.h" |
6 | 6 |
7 #include "services/shell/public/cpp/interface_registry.h" | 7 #include "services/service_manager/public/cpp/interface_registry.h" |
8 #include "services/shell/public/cpp/service_context.h" | 8 #include "services/service_manager/public/cpp/service_context.h" |
9 | 9 |
10 namespace shell { | 10 namespace shell { |
11 namespace test { | 11 namespace test { |
12 | 12 |
13 AppClient::AppClient() {} | 13 AppClient::AppClient() {} |
14 AppClient::AppClient(shell::mojom::ServiceRequest request) | 14 AppClient::AppClient(shell::mojom::ServiceRequest request) |
15 : context_(new ServiceContext(this, std::move(request))) {} | 15 : context_(new ServiceContext(this, std::move(request))) {} |
16 AppClient::~AppClient() {} | 16 AppClient::~AppClient() {} |
17 | 17 |
18 bool AppClient::OnConnect(const Identity& remote_identity, | 18 bool AppClient::OnConnect(const Identity& remote_identity, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 void AppClient::BindingLost() { | 52 void AppClient::BindingLost() { |
53 if (bindings_.empty()) | 53 if (bindings_.empty()) |
54 GracefulQuit(); | 54 GracefulQuit(); |
55 } | 55 } |
56 | 56 |
57 } // namespace test | 57 } // namespace test |
58 } // namespace shell | 58 } // namespace shell |
59 | 59 |
60 | 60 |
OLD | NEW |