| OLD | NEW |
| 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> |
| 11 | 11 |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/callback_forward.h" | 16 #include "base/callback_forward.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "components/favicon_base/favicon_callback.h" | 18 #include "components/favicon_base/favicon_callback.h" |
| 19 | 19 |
| 20 class AutocompleteProvider; | 20 class AutocompleteProvider; |
| 21 class GURL; | 21 class GURL; |
| 22 class InfoBarViewDelegate; | 22 class InfoBarViewDelegate; |
| 23 class PrefRegistrySimple; | 23 class PrefRegistrySimple; |
| 24 class PrefService; | 24 class PrefService; |
| 25 class VoiceSearchProvider; |
| 25 | 26 |
| 26 namespace autofill { | 27 namespace autofill { |
| 27 class CardUnmaskPromptController; | 28 class CardUnmaskPromptController; |
| 28 class CardUnmaskPromptView; | 29 class CardUnmaskPromptView; |
| 29 } | 30 } |
| 30 | 31 |
| 31 namespace net { | 32 namespace net { |
| 32 class URLRequestContextGetter; | 33 class URLRequestContextGetter; |
| 33 } | 34 } |
| 34 | 35 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() const; |
| 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_ |
| OLD | NEW |