chromium/ios/chrome/browser/ui/settings/notifications/tracking_price/tracking_price_view_controller_delegate.h

// Copyright 2022 The Chromium Authors
// 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_SETTINGS_NOTIFICATIONS_TRACKING_PRICE_TRACKING_PRICE_VIEW_CONTROLLER_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_NOTIFICATIONS_TRACKING_PRICE_TRACKING_PRICE_VIEW_CONTROLLER_DELEGATE_H_

@class TableViewItem;

// Delegate for TrackingPriceViewController instance, to manage
// the model.
@protocol TrackingPriceViewControllerDelegate <NSObject>

// Sends switch toggle response to the model so that it can be updated.
- (void)toggleSwitchItem:(TableViewItem*)item withValue:(BOOL)value;

@end

#endif  // IOS_CHROME_BROWSER_UI_SETTINGS_NOTIFICATIONS_TRACKING_PRICE_TRACKING_PRICE_VIEW_CONTROLLER_DELEGATE_H_