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

Side by Side Diff: chrome/browser/android/data_usage/external_data_use_observer.h

Issue 1837223002: Buffer UI navigation events in DataUseTabModel until rule fetch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed unittest fail Created 4 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
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_ANDROID_DATA_USAGE_EXTERNAL_DATA_USE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_DATA_USAGE_EXTERNAL_DATA_USE_OBSERVER_H_
6 #define CHROME_BROWSER_ANDROID_DATA_USAGE_EXTERNAL_DATA_USE_OBSERVER_H_ 6 #define CHROME_BROWSER_ANDROID_DATA_USAGE_EXTERNAL_DATA_USE_OBSERVER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 #if defined(OS_ANDROID) 101 #if defined(OS_ANDROID)
102 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, 102 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest,
103 DataUseReportingOnApplicationStatusChange); 103 DataUseReportingOnApplicationStatusChange);
104 #endif 104 #endif
105 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, HashFunction); 105 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, HashFunction);
106 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, 106 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest,
107 MatchingRuleFetchOnControlAppInstall); 107 MatchingRuleFetchOnControlAppInstall);
108 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, MultipleMatchingRules); 108 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, MultipleMatchingRules);
109 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, 109 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest,
110 PeriodicFetchMatchingRules); 110 PeriodicFetchMatchingRules);
111 FRIEND_TEST_ALL_PREFIXES(
112 ExternalDataUseObserverTest,
113 ProcessBufferedNavigationEventsAfterControlAppNotInstalled);
114 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest,
115 ProcessBufferedNavigationEventsAfterRuleFetch);
116 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest,
117 ProcessBufferedNavigationEventsAfterMaxLimit);
111 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, 118 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest,
112 RegisteredAsDataUseObserver); 119 RegisteredAsDataUseObserver);
113 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, ReportsMergedCorrectly); 120 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, ReportsMergedCorrectly);
114 FRIEND_TEST_ALL_PREFIXES(DataUseUITabModelTest, ReportTabEventsTest); 121 FRIEND_TEST_ALL_PREFIXES(DataUseUITabModelTest, ReportTabEventsTest);
115 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, 122 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest,
116 TimestampsMergedCorrectly); 123 TimestampsMergedCorrectly);
117 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, Variations); 124 FRIEND_TEST_ALL_PREFIXES(ExternalDataUseObserverTest, Variations);
118 125
119 // DataUseReportKey is a unique identifier for a data use report. 126 // DataUseReportKey is a unique identifier for a data use report.
120 struct DataUseReportKey { 127 struct DataUseReportKey {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 base::WeakPtrFactory<ExternalDataUseObserver> weak_factory_; 286 base::WeakPtrFactory<ExternalDataUseObserver> weak_factory_;
280 287
281 DISALLOW_COPY_AND_ASSIGN(ExternalDataUseObserver); 288 DISALLOW_COPY_AND_ASSIGN(ExternalDataUseObserver);
282 }; 289 };
283 290
284 } // namespace android 291 } // namespace android
285 292
286 } // namespace chrome 293 } // namespace chrome
287 294
288 #endif // CHROME_BROWSER_ANDROID_DATA_USAGE_EXTERNAL_DATA_USE_OBSERVER_H_ 295 #endif // CHROME_BROWSER_ANDROID_DATA_USAGE_EXTERNAL_DATA_USE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698