| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/api/music_manager_private/device_id.h" | 5 #include "chrome/browser/extensions/api/music_manager_private/device_id.h" |
| 6 | 6 |
| 7 // Note: The order of header includes is important, as we want both pre-Vista | 7 // Note: The order of header includes is important, as we want both pre-Vista |
| 8 // and post-Vista data structures to be defined, specifically | 8 // and post-Vista data structures to be defined, specifically |
| 9 // PIP_ADAPTER_ADDRESSES and PMIB_IF_ROW2. | 9 // PIP_ADAPTER_ADDRESSES and PMIB_IF_ROW2. |
| 10 |
| 11 #include <limits.h> |
| 10 #include <stddef.h> | 12 #include <stddef.h> |
| 11 #include <winsock2.h> | 13 #include <winsock2.h> |
| 12 #include <ws2def.h> | 14 #include <ws2def.h> |
| 13 #include <ws2ipdef.h> | 15 #include <ws2ipdef.h> |
| 14 #include <iphlpapi.h> | 16 #include <iphlpapi.h> |
| 15 | 17 |
| 16 #include <string> | 18 #include <string> |
| 17 | 19 |
| 18 #include "base/files/file_path.h" | 20 #include "base/files/file_path.h" |
| 19 #include "base/logging.h" | 21 #include "base/logging.h" |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 content::BrowserThread::PostTask( | 218 content::BrowserThread::PostTask( |
| 217 content::BrowserThread::FILE, | 219 content::BrowserThread::FILE, |
| 218 FROM_HERE, | 220 FROM_HERE, |
| 219 base::Bind(GetMacAddress, | 221 base::Bind(GetMacAddress, |
| 220 base::Bind(DeviceId::IsValidMacAddress), | 222 base::Bind(DeviceId::IsValidMacAddress), |
| 221 base::Bind(GetMacAddressCallback, callback))); | 223 base::Bind(GetMacAddressCallback, callback))); |
| 222 } | 224 } |
| 223 | 225 |
| 224 } // namespace api | 226 } // namespace api |
| 225 } // namespace extensions | 227 } // namespace extensions |
| OLD | NEW |