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

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

Issue 631083002: Replacing the OVERRIDE with override and FINAL with final in content/browser/speech (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (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_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 16 matching lines...) Expand all
27 : public BrowserMessageFilter, 27 : public BrowserMessageFilter,
28 public SpeechRecognitionEventListener { 28 public SpeechRecognitionEventListener {
29 public: 29 public:
30 SpeechRecognitionDispatcherHost( 30 SpeechRecognitionDispatcherHost(
31 int render_process_id, 31 int render_process_id,
32 net::URLRequestContextGetter* context_getter); 32 net::URLRequestContextGetter* context_getter);
33 33
34 base::WeakPtr<SpeechRecognitionDispatcherHost> AsWeakPtr(); 34 base::WeakPtr<SpeechRecognitionDispatcherHost> AsWeakPtr();
35 35
36 // SpeechRecognitionEventListener methods. 36 // SpeechRecognitionEventListener methods.
37 virtual void OnRecognitionStart(int session_id) OVERRIDE; 37 virtual void OnRecognitionStart(int session_id) override;
38 virtual void OnAudioStart(int session_id) OVERRIDE; 38 virtual void OnAudioStart(int session_id) override;
39 virtual void OnEnvironmentEstimationComplete(int session_id) OVERRIDE; 39 virtual void OnEnvironmentEstimationComplete(int session_id) override;
40 virtual void OnSoundStart(int session_id) OVERRIDE; 40 virtual void OnSoundStart(int session_id) override;
41 virtual void OnSoundEnd(int session_id) OVERRIDE; 41 virtual void OnSoundEnd(int session_id) override;
42 virtual void OnAudioEnd(int session_id) OVERRIDE; 42 virtual void OnAudioEnd(int session_id) override;
43 virtual void OnRecognitionEnd(int session_id) OVERRIDE; 43 virtual void OnRecognitionEnd(int session_id) override;
44 virtual void OnRecognitionResults( 44 virtual void OnRecognitionResults(
45 int session_id, 45 int session_id,
46 const SpeechRecognitionResults& results) OVERRIDE; 46 const SpeechRecognitionResults& results) override;
47 virtual void OnRecognitionError( 47 virtual void OnRecognitionError(
48 int session_id, 48 int session_id,
49 const SpeechRecognitionError& error) OVERRIDE; 49 const SpeechRecognitionError& error) override;
50 virtual void OnAudioLevelsChange(int session_id, 50 virtual void OnAudioLevelsChange(int session_id,
51 float volume, 51 float volume,
52 float noise_volume) OVERRIDE; 52 float noise_volume) override;
53 53
54 // BrowserMessageFilter implementation. 54 // BrowserMessageFilter implementation.
55 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 55 virtual bool OnMessageReceived(const IPC::Message& message) override;
56 virtual void OverrideThreadForMessage( 56 virtual void OverrideThreadForMessage(
57 const IPC::Message& message, 57 const IPC::Message& message,
58 BrowserThread::ID* thread) OVERRIDE; 58 BrowserThread::ID* thread) override;
59 59
60 virtual void OnChannelClosing() OVERRIDE; 60 virtual void OnChannelClosing() override;
61 61
62 private: 62 private:
63 virtual ~SpeechRecognitionDispatcherHost(); 63 virtual ~SpeechRecognitionDispatcherHost();
64 64
65 void OnStartRequest( 65 void OnStartRequest(
66 const SpeechRecognitionHostMsg_StartRequest_Params& params); 66 const SpeechRecognitionHostMsg_StartRequest_Params& params);
67 void OnStartRequestOnIO( 67 void OnStartRequestOnIO(
68 int embedder_render_process_id, 68 int embedder_render_process_id,
69 int embedder_render_view_id, 69 int embedder_render_view_id,
70 const SpeechRecognitionHostMsg_StartRequest_Params& params, 70 const SpeechRecognitionHostMsg_StartRequest_Params& params,
(...skipping 10 matching lines...) Expand all
81 // about this class being destroyed in the meanwhile (due to browser shutdown) 81 // about this class being destroyed in the meanwhile (due to browser shutdown)
82 // since tasks pending on a destroyed WeakPtr are automatically discarded. 82 // since tasks pending on a destroyed WeakPtr are automatically discarded.
83 base::WeakPtrFactory<SpeechRecognitionDispatcherHost> weak_factory_; 83 base::WeakPtrFactory<SpeechRecognitionDispatcherHost> weak_factory_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcherHost); 85 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcherHost);
86 }; 86 };
87 87
88 } // namespace content 88 } // namespace content
89 89
90 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_ 90 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognition_browsertest.cc ('k') | content/browser/speech/speech_recognition_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698