OLD | NEW |
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 #pragma once | |
8 | 7 |
9 #include <map> | 8 #include <map> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "content/public/renderer/render_view_observer.h" | 11 #include "content/public/renderer/render_view_observer.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionH
andle.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognitionH
andle.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognizer.h
" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechRecognizer.h
" |
16 | 15 |
17 class RenderViewImpl; | 16 class RenderViewImpl; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 WebKit::WebSpeechRecognizerClient* recognizer_client_; | 61 WebKit::WebSpeechRecognizerClient* recognizer_client_; |
63 | 62 |
64 typedef std::map<int, WebKit::WebSpeechRecognitionHandle> HandleMap; | 63 typedef std::map<int, WebKit::WebSpeechRecognitionHandle> HandleMap; |
65 HandleMap handle_map_; | 64 HandleMap handle_map_; |
66 int next_id_; | 65 int next_id_; |
67 | 66 |
68 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcher); | 67 DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionDispatcher); |
69 }; | 68 }; |
70 | 69 |
71 #endif // CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_ | 70 #endif // CONTENT_RENDERER_SPEECH_RECOGNITION_DISPATCHER_H_ |
OLD | NEW |