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

Unified Diff: ios/chrome/browser/voice/voice_search_url_rewriter.h

Issue 2449593002: [ios] Adds support for parsing Text-to-Speech search results. (Closed)
Patch Set: Fix AVFoundation dependency. Created 4 years, 2 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: ios/chrome/browser/voice/voice_search_url_rewriter.h
diff --git a/ios/chrome/browser/voice/voice_search_url_rewriter.h b/ios/chrome/browser/voice/voice_search_url_rewriter.h
new file mode 100644
index 0000000000000000000000000000000000000000..2a55e0777c848ba8f7b3941eafcb6b7f46956efc
--- /dev/null
+++ b/ios/chrome/browser/voice/voice_search_url_rewriter.h
@@ -0,0 +1,19 @@
+// Copyright 2016 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_VOICE_SEARCH_URL_REWRITER_H_
+#define IOS_CHROME_BROWSER_VOICE_VOICE_SEARCH_URL_REWRITER_H_
+
+class GURL;
+namespace web {
+class BrowserState;
+}
+
+// Adds the voice search flags to |url| if it's a Google search URL. This
+// function is a web::BrowserURLRewriter::URLRewriter, and is intended to be
+// used as a transient URLRewriter when performing a Google Search using Voice
+// Search.
+bool VoiceSearchURLRewriter(GURL* url, web::BrowserState* browser_state);
+
+#endif // IOS_CHROME_BROWSER_VOICE_VOICE_SEARCH_URL_REWRITER_H_

Powered by Google App Engine
This is Rietveld 408576698