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

Side by Side Diff: chrome/browser/speech/tts_controller_impl.h

Issue 448033002: Eliminate the dependency of Profile from TtsMessageFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "chrome/browser/speech/tts_controller.h" 16 #include "chrome/browser/speech/tts_controller.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 class Profile;
20
19 // Singleton class that manages text-to-speech for the TTS and TTS engine 21 // Singleton class that manages text-to-speech for the TTS and TTS engine
20 // extension APIs, maintaining a queue of pending utterances and keeping 22 // extension APIs, maintaining a queue of pending utterances and keeping
21 // track of all state. 23 // track of all state.
22 class TtsControllerImpl : public TtsController { 24 class TtsControllerImpl : public TtsController {
23 public: 25 public:
24 // Get the single instance of this class. 26 // Get the single instance of this class.
25 static TtsControllerImpl* GetInstance(); 27 static TtsControllerImpl* GetInstance();
26 28
27 // TtsController methods 29 // TtsController methods
28 virtual bool IsSpeaking() OVERRIDE; 30 virtual bool IsSpeaking() OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // dependency injection. 93 // dependency injection.
92 TtsPlatformImpl* platform_impl_; 94 TtsPlatformImpl* platform_impl_;
93 95
94 // The delegate that processes TTS requests with user-installed extensions. 96 // The delegate that processes TTS requests with user-installed extensions.
95 TtsEngineDelegate* tts_engine_delegate_; 97 TtsEngineDelegate* tts_engine_delegate_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(TtsControllerImpl); 99 DISALLOW_COPY_AND_ASSIGN(TtsControllerImpl);
98 }; 100 };
99 101
100 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_ 102 #endif // CHROME_BROWSER_SPEECH_TTS_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698