blob: 7c4a8cb8d3e74d75d81fe49ab7acde3238a4f679 [file] [log] [blame]
// Copyright 2019 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/time/time.h"
namespace grpc {
class ClientContext;
} // namespace grpc
namespace remoting {
// Sets the deadline on |context|.
void SetDeadline(grpc::ClientContext* context, base::Time deadline);
// Gets the deadline in base::Time. Returns base::Time::Max if the deadline is
// not set.
base::Time GetDeadline(const grpc::ClientContext& context);
} // namespace remoting