| // Copyright 2018 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_UI_OMNIBOX_OMNIBOX_MEDIATOR_H_ |
| #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_MEDIATOR_H_ |
| #import "ios/chrome/browser/ui/omnibox/popup/popup_match_preview_delegate.h" |
| @protocol OmniboxConsumer; |
| class TemplateURLService; |
| // A mediator object that updates the omnibox according to the model changes. |
| @interface OmniboxMediator : NSObject <PopupMatchPreviewDelegate> |
| // The templateURLService used by this mediator to extract whether the default |
| // search engine supports search-by-image. |
| @property(nonatomic, assign) TemplateURLService* templateURLService; |
| // The consumer for this object. This can change during the lifetime of this |
| // object and may be nil. |
| @property(nonatomic, weak) id<OmniboxConsumer> consumer; |
| @property(nonatomic, assign) FaviconLoader* faviconLoader; |
| #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_MEDIATOR_H_ |