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

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: Remove multi-line comment and change public component target to source_set 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 "components/feature_engagement_tracker/public/feature_engagement_tracke r.h"
12
13 namespace feature_engagement_tracker {
14
15 // The internal implementation of the FeatureEngagementTracker.
16 class FeatureEngagementTrackerImpl : public FeatureEngagementTracker {
17 public:
18 FeatureEngagementTrackerImpl();
19 ~FeatureEngagementTrackerImpl() override;
20
21 // FeatureEngagementTracker implementation.
22 void Event(const std::string& feature,
23 const std::string& precondition) override;
24 void Used(const std::string& feature) override;
25 bool Trigger(const std::string& feature) override;
26 void Dismissed() override;
27 void AddOnInitializedCallback(OnInitializedCallback callback) override;
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(FeatureEngagementTrackerImpl);
31 };
32
33 } // namespace feature_engagement_tracker
34
35 #endif // COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_FEATURE_ENGAGEMENT_TRA CKER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698