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

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

Issue 2432563002: [ios] Adds a provider API for AudioSessionController. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROME_BROWSER_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
7 7
8 #include <CoreGraphics/CoreGraphics.h> 8 #include <CoreGraphics/CoreGraphics.h>
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 namespace ios { 54 namespace ios {
55 55
56 class ChromeBrowserProvider; 56 class ChromeBrowserProvider;
57 class ChromeBrowserState; 57 class ChromeBrowserState;
58 class ChromeIdentityService; 58 class ChromeIdentityService;
59 class GeolocationUpdaterProvider; 59 class GeolocationUpdaterProvider;
60 class SigninResourcesProvider; 60 class SigninResourcesProvider;
61 class LiveTabContextProvider; 61 class LiveTabContextProvider;
62 class UpdatableResourceProvider; 62 class UpdatableResourceProvider;
63 class VoiceSearchProvider;
63 64
64 // Setter and getter for the provider. The provider should be set early, before 65 // Setter and getter for the provider. The provider should be set early, before
65 // any browser code is called. 66 // any browser code is called.
66 void SetChromeBrowserProvider(ChromeBrowserProvider* provider); 67 void SetChromeBrowserProvider(ChromeBrowserProvider* provider);
67 ChromeBrowserProvider* GetChromeBrowserProvider(); 68 ChromeBrowserProvider* GetChromeBrowserProvider();
68 69
69 // A class that allows embedding iOS-specific functionality in the 70 // A class that allows embedding iOS-specific functionality in the
70 // ios_chrome_browser target. 71 // ios_chrome_browser target.
71 class ChromeBrowserProvider { 72 class ChromeBrowserProvider {
72 public: 73 public:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // is not yet available through web::WebState. 135 // is not yet available through web::WebState.
135 // TODO(rohitrao): Change from |id| to |Tab*| once Tab is moved into the 136 // TODO(rohitrao): Change from |id| to |Tab*| once Tab is moved into the
136 // Chromium tree. 137 // Chromium tree.
137 virtual void AttachTabHelpers(web::WebState* web_state, id tab) const; 138 virtual void AttachTabHelpers(web::WebState* web_state, id tab) const;
138 139
139 // Returns whether safe browsing is enabled. See the comment on 140 // Returns whether safe browsing is enabled. See the comment on
140 // metrics_services_manager_client.h for details on |on_update_callback|. 141 // metrics_services_manager_client.h for details on |on_update_callback|.
141 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); 142 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback);
142 143
143 // Returns the list of available voice search languages. 144 // Returns the list of available voice search languages.
145 // TODO(rohitrao): Remove once callers are going through VoiceSearchProvider.
144 virtual NSArray* GetAvailableVoiceSearchLanguages() const; 146 virtual NSArray* GetAvailableVoiceSearchLanguages() const;
145 147
148 // Returns an instance of the voice search provider, if one exists.
149 virtual VoiceSearchProvider* GetVoiceSearchProvider();
sdefresne 2016/10/18 22:19:43 This method should be const.
rohitrao (ping after 24h) 2016/10/18 23:30:44 Done.
150
146 // Returns the SyncedWindowDelegatesGetter implementation. 151 // Returns the SyncedWindowDelegatesGetter implementation.
147 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> 152 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter>
148 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); 153 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state);
149 }; 154 };
150 155
151 } // namespace ios 156 } // namespace ios
152 157
153 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 158 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698