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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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
« no previous file with comments | « content/browser/site_instance.h ('k') | content/browser/speech/speech_recognizer.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_INPUT_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/browser_message_filter.h" 9 #include "content/browser/browser_message_filter.h"
10 #include "content/browser/speech/speech_input_manager.h" 10 #include "content/browser/speech/speech_input_manager.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 class SpeechInputCallers; 24 class SpeechInputCallers;
25 25
26 SpeechInputDispatcherHost( 26 SpeechInputDispatcherHost(
27 int render_process_id, 27 int render_process_id,
28 net::URLRequestContextGetter* context_getter, 28 net::URLRequestContextGetter* context_getter,
29 SpeechInputPreferences* speech_input_preferences); 29 SpeechInputPreferences* speech_input_preferences);
30 30
31 // SpeechInputManager::Delegate methods. 31 // SpeechInputManager::Delegate methods.
32 virtual void SetRecognitionResult(int caller_id, 32 virtual void SetRecognitionResult(int caller_id,
33 const SpeechInputResult& result); 33 const SpeechInputResult& result) OVERRIDE;
34 virtual void DidCompleteRecording(int caller_id); 34 virtual void DidCompleteRecording(int caller_id) OVERRIDE;
35 virtual void DidCompleteRecognition(int caller_id); 35 virtual void DidCompleteRecognition(int caller_id) OVERRIDE;
36 36
37 // BrowserMessageFilter implementation. 37 // BrowserMessageFilter implementation.
38 virtual bool OnMessageReceived(const IPC::Message& message, 38 virtual bool OnMessageReceived(const IPC::Message& message,
39 bool* message_was_ok); 39 bool* message_was_ok) OVERRIDE;
40 40
41 // Singleton manager setter useful for tests. 41 // Singleton manager setter useful for tests.
42 CONTENT_EXPORT static void set_manager(SpeechInputManager* manager); 42 CONTENT_EXPORT static void set_manager(SpeechInputManager* manager);
43 43
44 private: 44 private:
45 virtual ~SpeechInputDispatcherHost(); 45 virtual ~SpeechInputDispatcherHost();
46 46
47 void OnStartRecognition( 47 void OnStartRecognition(
48 const SpeechInputHostMsg_StartRecognition_Params &params); 48 const SpeechInputHostMsg_StartRecognition_Params &params);
49 void OnCancelRecognition(int render_view_id, int request_id); 49 void OnCancelRecognition(int render_view_id, int request_id);
(...skipping 10 matching lines...) Expand all
60 scoped_refptr<SpeechInputPreferences> speech_input_preferences_; 60 scoped_refptr<SpeechInputPreferences> speech_input_preferences_;
61 61
62 static SpeechInputManager* manager_; 62 static SpeechInputManager* manager_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost); 64 DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost);
65 }; 65 };
66 66
67 } // namespace speech_input 67 } // namespace speech_input
68 68
69 #endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_ 69 #endif // CONTENT_BROWSER_SPEECH_SPEECH_INPUT_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/site_instance.h ('k') | content/browser/speech/speech_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698