| 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
| 12 #include "base/sync_socket.h" | 12 #include "base/sync_socket.h" |
| 13 #include "content/public/common/speech_recognition_error.h" | 13 #include "content/public/common/speech_recognition_error.h" |
| 14 #include "content/public/common/speech_recognition_grammar.h" | 14 #include "content/public/common/speech_recognition_grammar.h" |
| 15 #include "content/public/common/speech_recognition_result.h" | 15 #include "content/public/common/speech_recognition_result.h" |
| 16 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 17 #include "ipc/ipc_param_traits.h" | 17 #include "ipc/ipc_param_traits.h" |
| 18 #include "media/audio/audio_parameters.h" | 18 #include "media/base/audio_parameters.h" |
| 19 #include "ui/gfx/geometry/rect.h" | 19 #include "ui/gfx/geometry/rect.h" |
| 20 | 20 |
| 21 #define IPC_MESSAGE_START SpeechRecognitionMsgStart | 21 #define IPC_MESSAGE_START SpeechRecognitionMsgStart |
| 22 | 22 |
| 23 IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechAudioErrorDetails, | 23 IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechAudioErrorDetails, |
| 24 content::SPEECH_AUDIO_ERROR_DETAILS_LAST) | 24 content::SPEECH_AUDIO_ERROR_DETAILS_LAST) |
| 25 IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechRecognitionErrorCode, | 25 IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechRecognitionErrorCode, |
| 26 content::SPEECH_RECOGNITION_ERROR_LAST) | 26 content::SPEECH_RECOGNITION_ERROR_LAST) |
| 27 | 27 |
| 28 IPC_STRUCT_TRAITS_BEGIN(content::SpeechRecognitionError) | 28 IPC_STRUCT_TRAITS_BEGIN(content::SpeechRecognitionError) |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) | 121 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) |
| 122 | 122 |
| 123 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) | 123 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) |
| 124 | 124 |
| 125 IPC_MESSAGE_ROUTED4(SpeechRecognitionMsg_AudioReceiverReady, | 125 IPC_MESSAGE_ROUTED4(SpeechRecognitionMsg_AudioReceiverReady, |
| 126 int /* request_id */, | 126 int /* request_id */, |
| 127 media::AudioParameters /* params */, | 127 media::AudioParameters /* params */, |
| 128 base::SharedMemoryHandle /* memory */, | 128 base::SharedMemoryHandle /* memory */, |
| 129 base::SyncSocket::TransitDescriptor /* socket */) | 129 base::SyncSocket::TransitDescriptor /* socket */) |
| OLD | NEW |