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

Side by Side Diff: content/browser/speech/speech_recognition_manager_impl.h

Issue 10663018: Changing tab closure handling logic in speech recognition code and cleaning bubble controller. (Spe… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Satish review + rebase Created 8 years, 5 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 | Annotate | Revision Log
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 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // issued when it is not created yet or destroyed (by BrowserMainLoop). 56 // issued when it is not created yet or destroyed (by BrowserMainLoop).
57 static SpeechRecognitionManagerImpl* GetInstance(); 57 static SpeechRecognitionManagerImpl* GetInstance();
58 58
59 // SpeechRecognitionManager implementation. 59 // SpeechRecognitionManager implementation.
60 virtual int CreateSession( 60 virtual int CreateSession(
61 const content::SpeechRecognitionSessionConfig& config) OVERRIDE; 61 const content::SpeechRecognitionSessionConfig& config) OVERRIDE;
62 virtual void StartSession(int session_id) OVERRIDE; 62 virtual void StartSession(int session_id) OVERRIDE;
63 virtual void AbortSession(int session_id) OVERRIDE; 63 virtual void AbortSession(int session_id) OVERRIDE;
64 virtual void AbortAllSessionsForListener( 64 virtual void AbortAllSessionsForListener(
65 content::SpeechRecognitionEventListener* listener) OVERRIDE; 65 content::SpeechRecognitionEventListener* listener) OVERRIDE;
66 virtual void AbortAllSessionsForRenderer(
67 int render_process_id, int render_view_id) OVERRIDE;
66 virtual void StopAudioCaptureForSession(int session_id) OVERRIDE; 68 virtual void StopAudioCaptureForSession(int session_id) OVERRIDE;
67 virtual const content::SpeechRecognitionSessionConfig& GetSessionConfig( 69 virtual const content::SpeechRecognitionSessionConfig& GetSessionConfig(
68 int session_id) const OVERRIDE; 70 int session_id) const OVERRIDE;
69 virtual content::SpeechRecognitionSessionContext GetSessionContext( 71 virtual content::SpeechRecognitionSessionContext GetSessionContext(
70 int session_id) const OVERRIDE; 72 int session_id) const OVERRIDE;
71 virtual int GetSession(int render_process_id, 73 virtual int GetSession(int render_process_id,
72 int render_view_id, 74 int render_view_id,
73 int request_id) const OVERRIDE; 75 int request_id) const OVERRIDE;
74 virtual bool HasAudioInputDevices() OVERRIDE; 76 virtual bool HasAudioInputDevices() OVERRIDE;
75 virtual bool IsCapturingAudio() OVERRIDE; 77 virtual bool IsCapturingAudio() OVERRIDE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 167
166 // Used for posting asynchronous tasks (on the IO thread) without worrying 168 // Used for posting asynchronous tasks (on the IO thread) without worrying
167 // about this class being destroyed in the meanwhile (due to browser shutdown) 169 // about this class being destroyed in the meanwhile (due to browser shutdown)
168 // since tasks pending on a destroyed WeakPtr are automatically discarded. 170 // since tasks pending on a destroyed WeakPtr are automatically discarded.
169 base::WeakPtrFactory<SpeechRecognitionManagerImpl> weak_factory_; 171 base::WeakPtrFactory<SpeechRecognitionManagerImpl> weak_factory_;
170 }; 172 };
171 173
172 } // namespace speech 174 } // namespace speech
173 175
174 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_ 176 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698