blob: 2a55e0777c848ba8f7b3941eafcb6b7f46956efc [file] [log] [blame]
// 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_