OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "extensions/browser/api/audio/audio_service.h" | 5 #include "extensions/browser/api/audio/audio_service.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
8 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
9 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
10 #include "chromeos/audio/audio_device.h" | 14 #include "chromeos/audio/audio_device.h" |
11 #include "chromeos/audio/cras_audio_handler.h" | 15 #include "chromeos/audio/cras_audio_handler.h" |
12 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
13 | 17 |
14 using content::BrowserThread; | 18 using content::BrowserThread; |
15 | 19 |
16 namespace extensions { | 20 namespace extensions { |
17 | 21 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // Notify DeviceChanged event for backward compatibility. | 285 // Notify DeviceChanged event for backward compatibility. |
282 // TODO(jennyz): remove this code when the old version of hotrod retires. | 286 // TODO(jennyz): remove this code when the old version of hotrod retires. |
283 NotifyDeviceChanged(); | 287 NotifyDeviceChanged(); |
284 } | 288 } |
285 | 289 |
286 AudioService* AudioService::CreateInstance() { | 290 AudioService* AudioService::CreateInstance() { |
287 return new AudioServiceImpl; | 291 return new AudioServiceImpl; |
288 } | 292 } |
289 | 293 |
290 } // namespace extensions | 294 } // namespace extensions |
OLD | NEW |