| 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_api.h" | 5 #include "extensions/browser/api/audio/audio_api.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "extensions/browser/event_router.h" | 9 #include "extensions/browser/event_router.h" |
| 10 #include "extensions/common/api/audio.h" | 10 #include "extensions/common/api/audio.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 namespace audio = core_api::audio; | 14 namespace audio = api::audio; |
| 15 | 15 |
| 16 static base::LazyInstance<BrowserContextKeyedAPIFactory<AudioAPI> > g_factory = | 16 static base::LazyInstance<BrowserContextKeyedAPIFactory<AudioAPI> > g_factory = |
| 17 LAZY_INSTANCE_INITIALIZER; | 17 LAZY_INSTANCE_INITIALIZER; |
| 18 | 18 |
| 19 // static | 19 // static |
| 20 BrowserContextKeyedAPIFactory<AudioAPI>* AudioAPI::GetFactoryInstance() { | 20 BrowserContextKeyedAPIFactory<AudioAPI>* AudioAPI::GetFactoryInstance() { |
| 21 return g_factory.Pointer(); | 21 return g_factory.Pointer(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 AudioAPI::AudioAPI(content::BrowserContext* context) | 24 AudioAPI::AudioAPI(content::BrowserContext* context) |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 volume_value, | 134 volume_value, |
| 135 gain_value)) | 135 gain_value)) |
| 136 return false; | 136 return false; |
| 137 else | 137 else |
| 138 return true; | 138 return true; |
| 139 } | 139 } |
| 140 | 140 |
| 141 /////////////////////////////////////////////////////////////////////////////// | 141 /////////////////////////////////////////////////////////////////////////////// |
| 142 | 142 |
| 143 } // namespace extensions | 143 } // namespace extensions |
| OLD | NEW |