mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
24 lines
760 B
C++
24 lines
760 B
C++
|
// Copyright 2018 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
#include "base/fuchsia/fidl_interface_request.h"
|
||
|
|
||
|
namespace base {
|
||
|
namespace fuchsia {
|
||
|
|
||
|
FidlInterfaceRequest::FidlInterfaceRequest(FidlInterfaceRequest&& moved) =
|
||
|
default;
|
||
|
|
||
|
FidlInterfaceRequest::FidlInterfaceRequest(const char* interface_name,
|
||
|
ScopedZxHandle channel)
|
||
|
: interface_name_(interface_name), channel_(std::move(channel)) {}
|
||
|
FidlInterfaceRequest::~FidlInterfaceRequest() = default;
|
||
|
|
||
|
ScopedZxHandle FidlInterfaceRequest::TakeChannel() {
|
||
|
DCHECK(channel_);
|
||
|
return std::move(channel_);
|
||
|
}
|
||
|
|
||
|
} // namespace fuchsia
|
||
|
} // namespace base
|