Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: chrome/browser/speech/tts_chromeos.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/speech/tts_android.cc ('k') | chrome/browser/speech/tts_controller_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/tts_platform.h" 5 #include "chrome/browser/speech/tts_platform.h"
6 6
7 // Chrome OS doesn't have native TTS, instead it includes a built-in 7 // Chrome OS doesn't have native TTS, instead it includes a built-in
8 // component extension that provides speech synthesis. This class includes 8 // component extension that provides speech synthesis. This class includes
9 // an implementation of LoadBuiltInTtsExtension and dummy implementations of 9 // an implementation of LoadBuiltInTtsExtension and dummy implementations of
10 // everything else. 10 // everything else.
(...skipping 30 matching lines...) Expand all
41 41
42 void GetVoices(std::vector<VoiceData>* out_voices) override {} 42 void GetVoices(std::vector<VoiceData>* out_voices) override {}
43 43
44 // Get the single instance of this class. 44 // Get the single instance of this class.
45 static TtsPlatformImplChromeOs* GetInstance(); 45 static TtsPlatformImplChromeOs* GetInstance();
46 46
47 private: 47 private:
48 TtsPlatformImplChromeOs() {} 48 TtsPlatformImplChromeOs() {}
49 ~TtsPlatformImplChromeOs() override {} 49 ~TtsPlatformImplChromeOs() override {}
50 50
51 friend struct DefaultSingletonTraits<TtsPlatformImplChromeOs>; 51 friend struct base::DefaultSingletonTraits<TtsPlatformImplChromeOs>;
52 52
53 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplChromeOs); 53 DISALLOW_COPY_AND_ASSIGN(TtsPlatformImplChromeOs);
54 }; 54 };
55 55
56 // static 56 // static
57 TtsPlatformImpl* TtsPlatformImpl::GetInstance() { 57 TtsPlatformImpl* TtsPlatformImpl::GetInstance() {
58 return TtsPlatformImplChromeOs::GetInstance(); 58 return TtsPlatformImplChromeOs::GetInstance();
59 } 59 }
60 60
61 // static 61 // static
62 TtsPlatformImplChromeOs* 62 TtsPlatformImplChromeOs*
63 TtsPlatformImplChromeOs::GetInstance() { 63 TtsPlatformImplChromeOs::GetInstance() {
64 return Singleton<TtsPlatformImplChromeOs>::get(); 64 return base::Singleton<TtsPlatformImplChromeOs>::get();
65 } 65 }
OLDNEW
« no previous file with comments | « chrome/browser/speech/tts_android.cc ('k') | chrome/browser/speech/tts_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698