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 #include <ifaddrs.h> | 7 #include <ifaddrs.h> |
8 #include <net/if.h> | 8 #include <net/if.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <string.h> |
10 #include <sys/ioctl.h> | 11 #include <sys/ioctl.h> |
11 #include <sys/socket.h> // Must be included before ifaddrs.h. | 12 #include <sys/socket.h> // Must be included before ifaddrs.h. |
12 | 13 |
13 #include <map> | 14 #include <map> |
14 | 15 |
15 #include "base/bind.h" | 16 #include "base/bind.h" |
16 #include "base/files/file_enumerator.h" | 17 #include "base/files/file_enumerator.h" |
17 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
18 #include "base/files/file_util.h" | 19 #include "base/files/file_util.h" |
19 #include "base/macros.h" | 20 #include "base/macros.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 content::BrowserThread::PostTask( | 200 content::BrowserThread::PostTask( |
200 content::BrowserThread::FILE, | 201 content::BrowserThread::FILE, |
201 FROM_HERE, | 202 FROM_HERE, |
202 base::Bind(GetRawDeviceIdImpl, | 203 base::Bind(GetRawDeviceIdImpl, |
203 base::Bind(DeviceId::IsValidMacAddress), | 204 base::Bind(DeviceId::IsValidMacAddress), |
204 callback)); | 205 callback)); |
205 } | 206 } |
206 | 207 |
207 } // namespace api | 208 } // namespace api |
208 } // namespace extensions | 209 } // namespace extensions |
OLD | NEW |