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

Side by Side Diff: ios/public/provider/chrome/browser/voice/voice_search_provider.h

Issue 2453003002: [ios] Adds a VoiceSearchController interface to the provider layer. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_PROVIDER_H_
7 7
8 #include <Foundation/Foundation.h> 8 #include <Foundation/Foundation.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
11 12
12 class AudioSessionController; 13 class AudioSessionController;
14 class VoiceSearchController;
15
16 namespace ios {
17 class ChromeBrowserState;
18 }
13 19
14 // VoiceSearchProvider allows embedders to provide functionality related to 20 // VoiceSearchProvider allows embedders to provide functionality related to
15 // voice search. 21 // voice search.
16 class VoiceSearchProvider { 22 class VoiceSearchProvider {
17 public: 23 public:
18 VoiceSearchProvider() = default; 24 VoiceSearchProvider() = default;
19 virtual ~VoiceSearchProvider() = default; 25 virtual ~VoiceSearchProvider() = default;
20 26
21 // Returns the list of available voice search languages. 27 // Returns the list of available voice search languages.
22 virtual NSArray* GetAvailableLanguages() const; 28 virtual NSArray* GetAvailableLanguages() const;
23 29
24 // Returns the singleton audio session controller. 30 // Returns the singleton audio session controller.
25 virtual AudioSessionController* GetAudioSessionController() const; 31 virtual AudioSessionController* GetAudioSessionController() const;
26 32
33 // Creates a new VoiceSearchController object.
34 virtual scoped_refptr<VoiceSearchController> CreateVoiceSearchController(
35 ios::ChromeBrowserState* browser_state) const;
36
27 private: 37 private:
28 DISALLOW_COPY_AND_ASSIGN(VoiceSearchProvider); 38 DISALLOW_COPY_AND_ASSIGN(VoiceSearchProvider);
29 }; 39 };
30 40
31 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_PROVIDER_H_ 41 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698