| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/geolocation/gateway_data_provider_win.h" | 5 #include "chrome/browser/geolocation/gateway_data_provider_win.h" |
| 6 | 6 |
| 7 #include <iphlpapi.h> | 7 #include <iphlpapi.h> |
| 8 #include <winsock2.h> | 8 #include <winsock2.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 WinGatewayDataProvider::~WinGatewayDataProvider() { | 107 WinGatewayDataProvider::~WinGatewayDataProvider() { |
| 108 } | 108 } |
| 109 | 109 |
| 110 template<> | 110 template<> |
| 111 GatewayDataProviderImplBase* GatewayDataProvider::DefaultFactoryFunction() { | 111 GatewayDataProviderImplBase* GatewayDataProvider::DefaultFactoryFunction() { |
| 112 if (!CommandLine::ForCurrentProcess() | 112 if (!CommandLine::ForCurrentProcess() |
| 113 ->HasSwitch(switches::kExperimentalLocationFeatures)) | 113 ->HasSwitch(switches::kExperimentalLocationFeatures)) |
| 114 return new EmptyDeviceDataProvider<GatewayData>(); | 114 return new EmptyDeviceDataProvider<GatewayData>(); |
| 115 return new WinGatewayDataProvider(); | 115 return new WinGatewayDataProvider(); |
| 116 } | 116 } |
| OLD | NEW |