| Index: ios/chrome/browser/voice/text_to_speech_parser.h
|
| diff --git a/ios/chrome/browser/voice/text_to_speech_parser.h b/ios/chrome/browser/voice/text_to_speech_parser.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c0e0294153c4dba3112772369ab96a2dbd2e7268
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/voice/text_to_speech_parser.h
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_BROWSER_VOICE_TEXT_TO_SPEECH_PARSER_H_
|
| +#define IOS_CHROME_BROWSER_VOICE_TEXT_TO_SPEECH_PARSER_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +
|
| +namespace web {
|
| +class WebState;
|
| +}
|
| +
|
| +// Extracts TTS audio data from |webState|'s HTML using the start and end tags
|
| +// for Google Voice Search result pages.
|
| +typedef void (^TextToSpeechCompletion)(NSData*);
|
| +void ExtractVoiceSearchAudioDataFromWebState(web::WebState* webState,
|
| + TextToSpeechCompletion completion);
|
| +
|
| +#endif // IOS_CHROME_BROWSER_VOICE_TEXT_TO_SPEECH_PARSER_H_
|
|
|