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/interface_provider.h" | 5 #include "services/service_manager/public/cpp/interface_provider.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "mojo/public/cpp/bindings/strong_binding.h" | 8 #include "mojo/public/cpp/bindings/strong_binding.h" |
9 | 9 |
10 namespace shell { | 10 namespace shell { |
11 | 11 |
12 InterfaceProvider::InterfaceProvider() : weak_factory_(this) { | 12 InterfaceProvider::InterfaceProvider() : weak_factory_(this) { |
13 pending_request_ = GetProxy(&interface_provider_); | 13 pending_request_ = GetProxy(&interface_provider_); |
14 } | 14 } |
15 | 15 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 DCHECK(interface_provider_.is_bound()); | 56 DCHECK(interface_provider_.is_bound()); |
57 interface_provider_->GetInterface(name, std::move(request_handle)); | 57 interface_provider_->GetInterface(name, std::move(request_handle)); |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 void InterfaceProvider::ClearBinders() { | 61 void InterfaceProvider::ClearBinders() { |
62 binders_.clear(); | 62 binders_.clear(); |
63 } | 63 } |
64 | 64 |
65 } // namespace shell | 65 } // namespace shell |
OLD | NEW |