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/public/cpp/lib/connector_impl.h" | 5 #include "services/service_manager/public/cpp/lib/connector_impl.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "services/shell/public/cpp/identity.h" | 8 #include "services/service_manager/public/cpp/identity.h" |
9 #include "services/shell/public/cpp/lib/connection_impl.h" | 9 #include "services/service_manager/public/cpp/lib/connection_impl.h" |
10 | 10 |
11 namespace shell { | 11 namespace shell { |
12 | 12 |
13 Connector::ConnectParams::ConnectParams(const Identity& target) | 13 Connector::ConnectParams::ConnectParams(const Identity& target) |
14 : target_(target) {} | 14 : target_(target) {} |
15 | 15 |
16 Connector::ConnectParams::ConnectParams(const std::string& name) | 16 Connector::ConnectParams::ConnectParams(const std::string& name) |
17 : target_(name, mojom::kInheritUserID) {} | 17 : target_(name, mojom::kInheritUserID) {} |
18 | 18 |
19 Connector::ConnectParams::~ConnectParams() {} | 19 Connector::ConnectParams::~ConnectParams() {} |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 return true; | 116 return true; |
117 } | 117 } |
118 | 118 |
119 std::unique_ptr<Connector> Connector::Create(mojom::ConnectorRequest* request) { | 119 std::unique_ptr<Connector> Connector::Create(mojom::ConnectorRequest* request) { |
120 mojom::ConnectorPtr proxy; | 120 mojom::ConnectorPtr proxy; |
121 *request = mojo::GetProxy(&proxy); | 121 *request = mojo::GetProxy(&proxy); |
122 return base::MakeUnique<ConnectorImpl>(proxy.PassInterface()); | 122 return base::MakeUnique<ConnectorImpl>(proxy.PassInterface()); |
123 } | 123 } |
124 | 124 |
125 } // namespace shell | 125 } // namespace shell |
OLD | NEW |