| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "mojo/public/cpp/bindings/associated_binding.h" | 5 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 6 #include "base/single_thread_task_runner.h" |
| 6 | 7 |
| 7 namespace mojo { | 8 namespace mojo { |
| 8 | 9 |
| 9 AssociatedBindingBase::AssociatedBindingBase() {} | 10 AssociatedBindingBase::AssociatedBindingBase() {} |
| 10 | 11 |
| 11 AssociatedBindingBase::~AssociatedBindingBase() {} | 12 AssociatedBindingBase::~AssociatedBindingBase() {} |
| 12 | 13 |
| 13 void AssociatedBindingBase::AddFilter(std::unique_ptr<MessageReceiver> filter) { | 14 void AssociatedBindingBase::AddFilter(std::unique_ptr<MessageReceiver> filter) { |
| 14 DCHECK(endpoint_client_); | 15 DCHECK(endpoint_client_); |
| 15 endpoint_client_->AddFilter(std::move(filter)); | 16 endpoint_client_->AddFilter(std::move(filter)); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 endpoint_client_.reset(); | 54 endpoint_client_.reset(); |
| 54 return; | 55 return; |
| 55 } | 56 } |
| 56 | 57 |
| 57 endpoint_client_.reset(new InterfaceEndpointClient( | 58 endpoint_client_.reset(new InterfaceEndpointClient( |
| 58 std::move(handle), receiver, std::move(payload_validator), | 59 std::move(handle), receiver, std::move(payload_validator), |
| 59 expect_sync_requests, std::move(runner), interface_version)); | 60 expect_sync_requests, std::move(runner), interface_version)); |
| 60 } | 61 } |
| 61 | 62 |
| 62 } // namespace mojo | 63 } // namespace mojo |
| OLD | NEW |