chromium/chromecast/net/network_change_notifier_factory_cast.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chromecast/net/network_change_notifier_factory_cast.h"

#include "chromecast/net/net_util_cast.h"
#include "net/base/network_change_notifier_linux.h"

namespace chromecast {

std::unique_ptr<net::NetworkChangeNotifier>
NetworkChangeNotifierFactoryCast::CreateInstanceWithInitialTypes(
    net::NetworkChangeNotifier::ConnectionType /*initial_type*/,
    net::NetworkChangeNotifier::ConnectionSubtype /*initial_subtype*/) {
  // Caller assumes ownership.
  return std::make_unique<net::NetworkChangeNotifierLinux>(
      GetIgnoredInterfaces());
}

NetworkChangeNotifierFactoryCast::~NetworkChangeNotifierFactoryCast() = default;

}  // namespace chromecast