Commit 8376eaeb authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Allow Browser to be passed to create VoiceSearchController

This change will allow Voice search to have access to a Browser in
preparation for classes to be Browser-scoped.

Bug: 790886
Change-Id: Ib80e432e1a84df0c868bcf5b12d4c98138028695
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2138169
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#757565}
parent 7c5fa992
......@@ -13,6 +13,7 @@
@protocol ApplicationCommands;
class AudioSessionController;
class Browser;
class ChromeBrowserState;
class VoiceSearchController;
......@@ -33,9 +34,14 @@ class VoiceSearchProvider {
// Returns the singleton audio session controller.
virtual AudioSessionController* GetAudioSessionController() const;
// Creates a new VoiceSearchController object.
// Creates a new VoiceSearchController object. TODO(crbug.com/790886): Remove
// the ChromeBrowserState constructor when the implementation for the Browser
// constructor finishes and all calls use that constructor. This is a part of
// the Brower-scoped migration.
virtual scoped_refptr<VoiceSearchController> CreateVoiceSearchController(
ChromeBrowserState* browser_state) const;
virtual scoped_refptr<VoiceSearchController> CreateVoiceSearchController(
Browser* browser) const;
private:
DISALLOW_COPY_AND_ASSIGN(VoiceSearchProvider);
......
......@@ -27,3 +27,8 @@ VoiceSearchProvider::CreateVoiceSearchController(
ChromeBrowserState* browser_state) const {
return scoped_refptr<VoiceSearchController>(nullptr);
}
scoped_refptr<VoiceSearchController>
VoiceSearchProvider::CreateVoiceSearchController(Browser* browser) const {
return scoped_refptr<VoiceSearchController>(nullptr);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment