OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_FEATURE_ENGAGEMENT_TRACKE
R_IMPL_H_ |
| 6 #define COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_FEATURE_ENGAGEMENT_TRACKE
R_IMPL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "base/supports_user_data.h" |
| 12 #include "components/feature_engagement_tracker/public/feature_engagement_tracke
r.h" |
| 13 |
| 14 namespace feature_engagement_tracker { |
| 15 |
| 16 // The internal implementation of the FeatureEngagementTracker. |
| 17 class FeatureEngagementTrackerImpl : public FeatureEngagementTracker, |
| 18 public base::SupportsUserData { |
| 19 public: |
| 20 FeatureEngagementTrackerImpl(); |
| 21 ~FeatureEngagementTrackerImpl() override; |
| 22 |
| 23 // FeatureEngagementTracker implementation. |
| 24 void Event(const std::string& feature, |
| 25 const std::string& precondition) override; |
| 26 void Used(const std::string& feature) override; |
| 27 bool Trigger(const std::string& feature) override; |
| 28 void Dismissed() override; |
| 29 void AddOnInitializedCallback(OnInitializedCallback callback) override; |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(FeatureEngagementTrackerImpl); |
| 33 }; |
| 34 |
| 35 } // namespace feature_engagement_tracker |
| 36 |
| 37 #endif // COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_FEATURE_ENGAGEMENT_TRA
CKER_IMPL_H_ |
OLD | NEW |