blob: 7fbd37a2b43a517eb8c28237e3d263fadb065b20 [file] [log] [blame]
// Copyright 2020 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/callback.h"
namespace network {
namespace mojom {
class NetworkContext;
} // namespace mojom
} // namespace network
namespace cast_streaming {
using NetworkContextGetter =
// Sets the NetworkContextGetter for embedders that use the Network Service.
// This must be called before any call to CastStreamingSession::Start() and must
// only be called once. If the NetworkContext crashes, any existing Cast
// Streaming Session will eventually terminate and call
// CastStreamingSession::OnSessionEnded().
void SetNetworkContextGetter(NetworkContextGetter getter);
} // namespace cast_streaming