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

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

Issue 6358007: Cancel any pending speech recognitions when the dispatcher host terminates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_SPEECH_INPUT_DISPATCHER_HOST_H_ 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_
6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "chrome/browser/browser_message_filter.h" 9 #include "chrome/browser/browser_message_filter.h"
10 #include "chrome/browser/speech/speech_input_manager.h" 10 #include "chrome/browser/speech/speech_input_manager.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void OnStartRecognition( 44 void OnStartRecognition(
45 const SpeechInputHostMsg_StartRecognition_Params &params); 45 const SpeechInputHostMsg_StartRecognition_Params &params);
46 void OnCancelRecognition(int render_view_id, int request_id); 46 void OnCancelRecognition(int render_view_id, int request_id);
47 void OnStopRecording(int render_view_id, int request_id); 47 void OnStopRecording(int render_view_id, int request_id);
48 48
49 // Returns the speech input manager to forward events to, creating one if 49 // Returns the speech input manager to forward events to, creating one if
50 // needed. 50 // needed.
51 SpeechInputManager* manager(); 51 SpeechInputManager* manager();
52 52
53 int render_process_id_; 53 int render_process_id_;
54 bool may_have_pending_requests_; // Set if we received any speech IPC request
54 55
55 static SpeechInputManager::AccessorMethod* manager_accessor_; 56 static SpeechInputManager::AccessorMethod* manager_accessor_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost); 58 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost);
58 }; 59 };
59 60
60 } // namespace speech_input 61 } // namespace speech_input
61 62
62 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ 63 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/speech/speech_input_browsertest.cc ('k') | chrome/browser/speech/speech_input_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698