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 <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
10 #include "base/values.h" | 12 #include "base/values.h" |
11 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/speech/extension_api/tts_engine_extension_api.h" | 14 #include "chrome/browser/speech/extension_api/tts_engine_extension_api.h" |
13 #include "chrome/browser/speech/extension_api/tts_engine_extension_observer.h" | 15 #include "chrome/browser/speech/extension_api/tts_engine_extension_observer.h" |
14 #include "chrome/browser/speech/extension_api/tts_extension_api_constants.h" | 16 #include "chrome/browser/speech/extension_api/tts_extension_api_constants.h" |
15 #include "chrome/browser/speech/tts_controller.h" | 17 #include "chrome/browser/speech/tts_controller.h" |
16 #include "extensions/browser/event_router.h" | 18 #include "extensions/browser/event_router.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 } | 366 } |
365 | 367 |
366 static base::LazyInstance<BrowserContextKeyedAPIFactory<TtsAPI> > g_factory = | 368 static base::LazyInstance<BrowserContextKeyedAPIFactory<TtsAPI> > g_factory = |
367 LAZY_INSTANCE_INITIALIZER; | 369 LAZY_INSTANCE_INITIALIZER; |
368 | 370 |
369 BrowserContextKeyedAPIFactory<TtsAPI>* TtsAPI::GetFactoryInstance() { | 371 BrowserContextKeyedAPIFactory<TtsAPI>* TtsAPI::GetFactoryInstance() { |
370 return g_factory.Pointer(); | 372 return g_factory.Pointer(); |
371 } | 373 } |
372 | 374 |
373 } // namespace extensions | 375 } // namespace extensions |
OLD | NEW |