OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_H_ |
6 #define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_H_ | 6 #define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "chrome/browser/engagement/site_engagement_metrics.h" | 17 #include "chrome/browser/engagement/site_engagement_metrics.h" |
18 #include "chrome/browser/engagement/site_engagement_observer.h" | 18 #include "chrome/browser/engagement/site_engagement_observer.h" |
19 #include "components/history/core/browser/history_service_observer.h" | 19 #include "components/history/core/browser/history_service_observer.h" |
20 #include "components/keyed_service/core/keyed_service.h" | 20 #include "components/keyed_service/core/keyed_service.h" |
21 #include "ui/base/page_transition_types.h" | 21 #include "ui/base/page_transition_types.h" |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 class DictionaryValue; | |
25 class Clock; | 24 class Clock; |
26 } | 25 } |
27 | 26 |
28 namespace content { | 27 namespace content { |
29 class WebContents; | 28 class WebContents; |
30 } | 29 } |
31 | 30 |
32 namespace history { | 31 namespace history { |
33 class HistoryService; | 32 class HistoryService; |
34 } | 33 } |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // A list of observers. When any origin registers an engagement-increasing | 258 // A list of observers. When any origin registers an engagement-increasing |
260 // event, each observer's OnEngagementIncreased method will be called. | 259 // event, each observer's OnEngagementIncreased method will be called. |
261 base::ObserverList<SiteEngagementObserver> observer_list_; | 260 base::ObserverList<SiteEngagementObserver> observer_list_; |
262 | 261 |
263 base::WeakPtrFactory<SiteEngagementService> weak_factory_; | 262 base::WeakPtrFactory<SiteEngagementService> weak_factory_; |
264 | 263 |
265 DISALLOW_COPY_AND_ASSIGN(SiteEngagementService); | 264 DISALLOW_COPY_AND_ASSIGN(SiteEngagementService); |
266 }; | 265 }; |
267 | 266 |
268 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_H_ | 267 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_H_ |
OLD | NEW |