Home | History | Annotate | Download | only in base
      1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "net/base/network_change_notifier.h"
      6 #include "build/build_config.h"
      7 #if defined(OS_WIN)
      8 #include "net/base/network_change_notifier_win.h"
      9 #elif defined(OS_LINUX)
     10 #include "net/base/network_change_notifier_linux.h"
     11 #elif defined(OS_MACOSX)
     12 #include "net/base/network_change_notifier_mac.h"
     13 #endif
     14 
     15 namespace net {
     16 
     17 // static
     18 NetworkChangeNotifier*
     19 NetworkChangeNotifier::CreateDefaultNetworkChangeNotifier() {
     20 #if defined(OS_WIN)
     21   return new NetworkChangeNotifierWin();
     22 #elif defined(OS_LINUX)
     23   return new NetworkChangeNotifierLinux();
     24 #elif defined(OS_MACOSX)
     25   return new NetworkChangeNotifierMac();
     26 #else
     27   NOTIMPLEMENTED();
     28   return NULL;
     29 #endif
     30 }
     31 
     32 }  // namespace net
     33