OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_TTS_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_TTS_DISPATCHER_H_ |
6 #define CHROME_RENDERER_TTS_DISPATCHER_H_ | 6 #define CHROME_RENDERER_TTS_DISPATCHER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
12 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
| 12 #include "base/macros.h" |
13 #include "content/public/renderer/render_process_observer.h" | 13 #include "content/public/renderer/render_process_observer.h" |
14 #include "third_party/WebKit/public/platform/WebSpeechSynthesizer.h" | 14 #include "third_party/WebKit/public/platform/WebSpeechSynthesizer.h" |
15 #include "third_party/WebKit/public/platform/WebSpeechSynthesizerClient.h" | 15 #include "third_party/WebKit/public/platform/WebSpeechSynthesizerClient.h" |
16 | 16 |
17 namespace IPC { | 17 namespace IPC { |
18 class Message; | 18 class Message; |
19 } | 19 } |
20 | 20 |
21 struct TtsVoice; | 21 struct TtsVoice; |
22 | 22 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Next utterance id, used to map response IPCs to utterance objects. | 68 // Next utterance id, used to map response IPCs to utterance objects. |
69 static int next_utterance_id_; | 69 static int next_utterance_id_; |
70 | 70 |
71 // Map from id to utterance objects. | 71 // Map from id to utterance objects. |
72 base::hash_map<int, blink::WebSpeechSynthesisUtterance> utterance_id_map_; | 72 base::hash_map<int, blink::WebSpeechSynthesisUtterance> utterance_id_map_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(TtsDispatcher); | 74 DISALLOW_COPY_AND_ASSIGN(TtsDispatcher); |
75 }; | 75 }; |
76 | 76 |
77 #endif // CHROME_RENDERER_TTS_DISPATCHER_H_ | 77 #endif // CHROME_RENDERER_TTS_DISPATCHER_H_ |
OLD | NEW |