Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7426)

Unified Diff: chrome/browser/speech/speech_recognition_request.h

Issue 6134003: Prototype of chunked transfer encoded POST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/speech/speech_recognition_request.h
diff --git a/chrome/browser/speech/speech_recognition_request.h b/chrome/browser/speech/speech_recognition_request.h
index c12fc4d31513f8a82d118464787d000363d76e86..89829d0f1bc38a17f2345808075c25f6b79616fa 100644
--- a/chrome/browser/speech/speech_recognition_request.h
+++ b/chrome/browser/speech/speech_recognition_request.h
@@ -45,11 +45,13 @@ class SpeechRecognitionRequest : public URLFetcher::Delegate {
// Sends a new request with the given audio data, returns true if successful.
// The same object can be used to send multiple requests but only after the
// previous request has completed.
- bool Send(const std::string& language,
- const std::string& grammar,
- const std::string& hardware_info,
- const std::string& content_type,
- const std::string& audio_data);
+ void Start(const std::string& language,
+ const std::string& grammar,
+ const std::string& hardware_info,
+ const std::string& content_type);
+
+ void UploadAudioChunk(const std::string& audio_data);
+ void FinishAudioUpload();
bool HasPendingRequest() { return url_fetcher_ != NULL; }

Powered by Google App Engine
This is Rietveld 408576698