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

Side by Side Diff: components/previews/core/previews_experiments.h

Issue 2448313002: Adding unit tests for PreviewsOptOutStoreSQL (Closed)
Patch Set: ios issue Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_ 5 #ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_
6 #define COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_ 6 #define COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 9
10 namespace previews { 10 namespace previews {
(...skipping 15 matching lines...) Expand all
26 base::TimeDelta BlackListDuration(); 26 base::TimeDelta BlackListDuration();
27 27
28 } // namespace params 28 } // namespace params
29 29
30 enum class PreviewsType { 30 enum class PreviewsType {
31 NONE = 0, 31 NONE = 0,
32 OFFLINE = 1, 32 OFFLINE = 1,
33 LAST = 2, 33 LAST = 2,
34 }; 34 };
35 35
36 // Returns the maximum number of table rows allowed per host for the previews
37 // opt out store.
38 int MaxRowsPerHostInOptOutDB();
39
40 // Returns the maximum number of table rows allowed for the previews opt out
41 // store.
42 int MaxRowsInOptOutDB();
43
36 // Returns true if any client-side previews experiment is active. 44 // Returns true if any client-side previews experiment is active.
37 bool IsIncludedInClientSidePreviewsExperimentsFieldTrial(); 45 bool IsIncludedInClientSidePreviewsExperimentsFieldTrial();
38 46
39 // Returns true if the field trial that should enable previews for |type| for 47 // Returns true if the field trial that should enable previews for |type| for
40 // prohibitvely slow networks is active. 48 // prohibitvely slow networks is active.
41 bool IsPreviewsTypeEnabled(PreviewsType type); 49 bool IsPreviewsTypeEnabled(PreviewsType type);
42 50
43 // Sets the appropriate state for field trial and variations to imitate the 51 // Sets the appropriate state for field trial and variations to imitate the
44 // offline pages field trial. 52 // offline pages field trial.
45 bool EnableOfflinePreviewsForTesting(); 53 bool EnableOfflinePreviewsForTesting();
46 54
47 } // namespace previews 55 } // namespace previews
48 56
49 #endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_ 57 #endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698