| 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" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/hash_tables.h" | 12 #include "base/containers/hash_tables.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Next utterance id, used to map response IPCs to utterance objects. | 65 // Next utterance id, used to map response IPCs to utterance objects. |
| 66 static int next_utterance_id_; | 66 static int next_utterance_id_; |
| 67 | 67 |
| 68 // Map from id to utterance objects. | 68 // Map from id to utterance objects. |
| 69 base::hash_map<int, WebKit::WebSpeechSynthesisUtterance> utterance_id_map_; | 69 base::hash_map<int, WebKit::WebSpeechSynthesisUtterance> utterance_id_map_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(TtsDispatcher); | 71 DISALLOW_COPY_AND_ASSIGN(TtsDispatcher); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif // CHROME_RENDERER_TTS_DISPATCHER_H_ | 74 #endif // CHROME_RENDERER_TTS_DISPATCHER_H_ |
| OLD | NEW |