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

Side by Side Diff: content/renderer/speech_recognition_dispatcher.h

Issue 2537513006: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_
6 #define CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_ 6 #define CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 11 matching lines...) Expand all
22 namespace media { 22 namespace media {
23 class AudioParameters; 23 class AudioParameters;
24 } 24 }
25 25
26 namespace content { 26 namespace content {
27 class RenderViewImpl; 27 class RenderViewImpl;
28 #if BUILDFLAG(ENABLE_WEBRTC) 28 #if BUILDFLAG(ENABLE_WEBRTC)
29 class SpeechRecognitionAudioSink; 29 class SpeechRecognitionAudioSink;
30 #endif 30 #endif
31 struct SpeechRecognitionError; 31 struct SpeechRecognitionError;
32 struct SpeechRecognitionResult;
33 32
34 // SpeechRecognitionDispatcher is a delegate for methods used by WebKit for 33 // SpeechRecognitionDispatcher is a delegate for methods used by WebKit for
35 // scripted JS speech APIs. It's the complement of 34 // scripted JS speech APIs. It's the complement of
36 // SpeechRecognitionDispatcherHost (owned by RenderViewHost). 35 // SpeechRecognitionDispatcherHost (owned by RenderViewHost).
37 class SpeechRecognitionDispatcher : public RenderViewObserver, 36 class SpeechRecognitionDispatcher : public RenderViewObserver,
38 public blink::WebSpeechRecognizer { 37 public blink::WebSpeechRecognizer {
39 public: 38 public:
40 explicit SpeechRecognitionDispatcher(RenderViewImpl* render_view); 39 explicit SpeechRecognitionDispatcher(RenderViewImpl* render_view);
41 ~SpeechRecognitionDispatcher() override; 40 ~SpeechRecognitionDispatcher() override;
42 41
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 typedef std::map<int, blink::WebSpeechRecognitionHandle> HandleMap; 91 typedef std::map<int, blink::WebSpeechRecognitionHandle> HandleMap;
93 HandleMap handle_map_; 92 HandleMap handle_map_;
94 int next_id_; 93 int next_id_;
95 94
96 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcher); 95 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcher);
97 }; 96 };
98 97
99 } // namespace content 98 } // namespace content
100 99
101 #endif // CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_ 100 #endif // CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698