| 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/webrtc_audio_private/webrtc_audio_privat
e_api.h" | 5 #include "chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_privat
e_api.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/task_runner_util.h" | 9 #include "base/task_runner_util.h" |
| 10 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" | 10 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" |
| 11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
| 12 #include "chrome/browser/extensions/extension_tab_util.h" | 12 #include "chrome/browser/extensions/extension_tab_util.h" |
| 13 #include "chrome/browser/profiles/profile.h" |
| 13 #include "content/public/browser/media_device_id.h" | 14 #include "content/public/browser/media_device_id.h" |
| 15 #include "content/public/browser/resource_context.h" |
| 14 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 15 #include "extensions/browser/event_router.h" | 17 #include "extensions/browser/event_router.h" |
| 16 #include "extensions/browser/extension_system.h" | 18 #include "extensions/browser/extension_system.h" |
| 17 #include "extensions/common/error_utils.h" | 19 #include "extensions/common/error_utils.h" |
| 18 #include "media/audio/audio_manager_base.h" | 20 #include "media/audio/audio_manager_base.h" |
| 19 #include "media/audio/audio_output_controller.h" | 21 #include "media/audio/audio_output_controller.h" |
| 20 | 22 |
| 21 namespace extensions { | 23 namespace extensions { |
| 22 | 24 |
| 23 using content::BrowserThread; | 25 using content::BrowserThread; |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 results_.reset(wap::GetAssociatedSink::Results::Create("").release()); | 475 results_.reset(wap::GetAssociatedSink::Results::Create("").release()); |
| 474 } else { | 476 } else { |
| 475 results_.reset( | 477 results_.reset( |
| 476 wap::GetAssociatedSink::Results::Create(associated_sink_id).release()); | 478 wap::GetAssociatedSink::Results::Create(associated_sink_id).release()); |
| 477 } | 479 } |
| 478 | 480 |
| 479 SendResponse(true); | 481 SendResponse(true); |
| 480 } | 482 } |
| 481 | 483 |
| 482 } // namespace extensions | 484 } // namespace extensions |
| OLD | NEW |