OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/speech/extension_api/tts_extension_api.h" | 5 #include "chrome/browser/speech/extension_api/tts_extension_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 registry->RegisterFunction<TtsIsSpeakingFunction>(); | 350 registry->RegisterFunction<TtsIsSpeakingFunction>(); |
351 registry->RegisterFunction<TtsSpeakFunction>(); | 351 registry->RegisterFunction<TtsSpeakFunction>(); |
352 registry->RegisterFunction<TtsStopSpeakingFunction>(); | 352 registry->RegisterFunction<TtsStopSpeakingFunction>(); |
353 registry->RegisterFunction<TtsPauseFunction>(); | 353 registry->RegisterFunction<TtsPauseFunction>(); |
354 registry->RegisterFunction<TtsResumeFunction>(); | 354 registry->RegisterFunction<TtsResumeFunction>(); |
355 } | 355 } |
356 | 356 |
357 TtsAPI::~TtsAPI() { | 357 TtsAPI::~TtsAPI() { |
358 } | 358 } |
359 | 359 |
360 static base::LazyInstance<ProfileKeyedAPIFactory<TtsAPI> > | 360 static base::LazyInstance<BrowserContextKeyedAPIFactory<TtsAPI> > g_factory = |
361 g_factory = LAZY_INSTANCE_INITIALIZER; | 361 LAZY_INSTANCE_INITIALIZER; |
362 | 362 |
363 ProfileKeyedAPIFactory<TtsAPI>* TtsAPI::GetFactoryInstance() { | 363 BrowserContextKeyedAPIFactory<TtsAPI>* TtsAPI::GetFactoryInstance() { |
364 return g_factory.Pointer(); | 364 return g_factory.Pointer(); |
365 } | 365 } |
366 | 366 |
367 } // namespace extensions | 367 } // namespace extensions |
OLD | NEW |