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 <sys/socket.h> // Must be included before ifaddrs.h. | 7 #include <sys/socket.h> // Must be included before ifaddrs.h. |
8 #include <ifaddrs.h> | 8 #include <ifaddrs.h> |
9 #include <net/if.h> | 9 #include <net/if.h> |
10 #include <sys/ioctl.h> | 10 #include <sys/ioctl.h> |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 base::Bind(callback, raw_device_id)); | 185 base::Bind(callback, raw_device_id)); |
186 } | 186 } |
187 | 187 |
188 } // namespace | 188 } // namespace |
189 | 189 |
190 namespace extensions { | 190 namespace extensions { |
191 namespace api { | 191 namespace api { |
192 | 192 |
193 // static | 193 // static |
194 void DeviceId::GetRawDeviceId(const IdCallback& callback) { | 194 void DeviceId::GetRawDeviceId(const IdCallback& callback) { |
195 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 195 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
196 | 196 |
197 content::BrowserThread::PostTask( | 197 content::BrowserThread::PostTask( |
198 content::BrowserThread::FILE, | 198 content::BrowserThread::FILE, |
199 FROM_HERE, | 199 FROM_HERE, |
200 base::Bind(GetRawDeviceIdImpl, | 200 base::Bind(GetRawDeviceIdImpl, |
201 base::Bind(DeviceId::IsValidMacAddress), | 201 base::Bind(DeviceId::IsValidMacAddress), |
202 callback)); | 202 callback)); |
203 } | 203 } |
204 | 204 |
205 } // namespace api | 205 } // namespace api |
206 } // namespace extensions | 206 } // namespace extensions |
OLD | NEW |