| // Copyright 2017 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_FEATURE_ENGAGEMENT_MODEL_TRACKER_UTIL_H_ |
| #define IOS_CHROME_BROWSER_FEATURE_ENGAGEMENT_MODEL_TRACKER_UTIL_H_ |
| |
| #import "ios/chrome/browser/shared/model/profile/profile_ios_forward.h" |
| @class OpenNewTabCommand; |
| |
| namespace feature_engagement { |
| // Sends a new tab event to the feature_engagement::Tracker based on |
| // `is_incognito`. If `is_incognito` is `true`, then the "Incognito Tab Opened" |
| // is fired. If `is_incognito` is `false`, then the "New Tab Event" is fired. |
| void NotifyNewTabEvent(ProfileIOS* profile, bool is_incognito); |
| |
| // Sends a new tab event to the feature_engagement::Tracker based on |
| // `command.incognito` and `command.userInitiated`. If `command.userInitiated` |
| // is `false`, then no event is fired. If `command.userInitiated` is `true`, |
| // then one of the new tab events is fired. If `command.incognito` is `true`, |
| // then the "Incognito Tab Opened" event is fired, and if `command.incognito` is |
| // `false`, then the "New Tab Opened" event is fired. |
| void NotifyNewTabEventForCommand(ProfileIOS* profile, |
| OpenNewTabCommand* command); |
| } // namespace feature_engagement |
| |
| #endif // IOS_CHROME_BROWSER_FEATURE_ENGAGEMENT_MODEL_TRACKER_UTIL_H_ |