| 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_
|
|
|