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

Side by Side Diff: content/public/browser/speech_recognition_manager.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: Slight refactor to fix a bug on mac + 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_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // premilinary check on the delegate (CheckRecognitionIsAllowed). 42 // premilinary check on the delegate (CheckRecognitionIsAllowed).
43 virtual void StartSession(int session_id) = 0; 43 virtual void StartSession(int session_id) = 0;
44 44
45 // Aborts recognition for an existing session, without providing any result. 45 // Aborts recognition for an existing session, without providing any result.
46 virtual void AbortSession(int session_id) = 0; 46 virtual void AbortSession(int session_id) = 0;
47 47
48 // Aborts all sessions for a given listener, without providing any result. 48 // Aborts all sessions for a given listener, without providing any result.
49 virtual void AbortAllSessionsForListener( 49 virtual void AbortAllSessionsForListener(
50 SpeechRecognitionEventListener* listener) = 0; 50 SpeechRecognitionEventListener* listener) = 0;
51 51
52 // Aborts all sessions for a given renderer, without providing any result.
53 virtual void AbortAllSessionsForRenderer(
54 int render_process_id, int render_view_id) = 0;
55
52 // Stops audio capture for an existing session. The audio captured before the 56 // Stops audio capture for an existing session. The audio captured before the
53 // call will be processed, possibly ending up with a result. 57 // call will be processed, possibly ending up with a result.
54 virtual void StopAudioCaptureForSession(int session_id) = 0; 58 virtual void StopAudioCaptureForSession(int session_id) = 0;
55 59
56 // Retrieves the configuration of a session, as provided by the caller 60 // Retrieves the configuration of a session, as provided by the caller
57 // upon CreateSession. 61 // upon CreateSession.
58 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(int session_id) 62 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(int session_id)
59 const = 0; 63 const = 0;
60 64
61 // Retrieves the context associated to a session. 65 // Retrieves the context associated to a session.
(...skipping 20 matching lines...) Expand all
82 // via the BrowserThread::FILE thread. 86 // via the BrowserThread::FILE thread.
83 virtual void ShowAudioInputSettings() = 0; 87 virtual void ShowAudioInputSettings() = 0;
84 88
85 protected: 89 protected:
86 virtual ~SpeechRecognitionManager() {} 90 virtual ~SpeechRecognitionManager() {}
87 }; 91 };
88 92
89 } // namespace content 93 } // namespace content
90 94
91 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ 95 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698