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 <math.h> | 5 #include <math.h> |
| 6 #include <stddef.h> |
6 | 7 |
7 #include <map> | 8 #include <map> |
8 | 9 |
9 #include "base/command_line.h" | 10 #include "base/command_line.h" |
10 #include "base/debug/leak_annotations.h" | 11 #include "base/debug/leak_annotations.h" |
| 12 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
13 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
14 #include "chrome/browser/speech/tts_platform.h" | 16 #include "chrome/browser/speech/tts_platform.h" |
15 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
17 | 19 |
18 #include "library_loaders/libspeechd.h" | 20 #include "library_loaders/libspeechd.h" |
19 | 21 |
20 using content::BrowserThread; | 22 using content::BrowserThread; |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 TtsPlatformImplLinux* TtsPlatformImplLinux::GetInstance() { | 350 TtsPlatformImplLinux* TtsPlatformImplLinux::GetInstance() { |
349 return base::Singleton< | 351 return base::Singleton< |
350 TtsPlatformImplLinux, | 352 TtsPlatformImplLinux, |
351 base::LeakySingletonTraits<TtsPlatformImplLinux>>::get(); | 353 base::LeakySingletonTraits<TtsPlatformImplLinux>>::get(); |
352 } | 354 } |
353 | 355 |
354 // static | 356 // static |
355 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { | 357 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { |
356 return TtsPlatformImplLinux::GetInstance(); | 358 return TtsPlatformImplLinux::GetInstance(); |
357 } | 359 } |
OLD | NEW |