Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: components/feature_engagement_tracker/internal/feature_engagement_tracker_impl.h

Issue 2782113002: Add component for feature engagement tracking. (Closed)
Patch Set: Fix typo in //chrome/android/java/DEPS Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698