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

Unified Diff: components/browsing_data/core/browsing_data_enums.h

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)
Patch Set: fix .classpath file Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: components/browsing_data/core/browsing_data_enums.h
diff --git a/components/browsing_data/core/browsing_data_enums.h b/components/browsing_data/core/browsing_data_enums.h
new file mode 100644
index 0000000000000000000000000000000000000000..0eee8b6dab81d7d64ed21a6c76f5f0077a62b312
--- /dev/null
+++ b/components/browsing_data/core/browsing_data_enums.h
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
msramek 2017/02/08 10:55:56 nit: 2017
dullweber 2017/02/08 23:03:19 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_ENUMS_H_
+#define COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_ENUMS_H_
+
+// Enums shared between browsing_data_counter and browsing_data_utils.
+namespace browsing_data {
+
+// This enum is used to differentiate CBD preferences from the basic and
+// advanced tab and manage their state separately. It is important that all
+// preferences and the timeperiod selection have the same type.
+//
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.browsing_data
+enum class ClearBrowsingDataPreferenceType {
msramek 2017/02/08 10:55:56 All methods manipulating this enum are in utils.h.
dullweber 2017/02/08 23:03:18 The problem was that adding this enum to utils.h c
msramek 2017/02/09 18:16:48 Right... yeah, I don't think there's a workaround.
+ DEFAULT,
msramek 2017/02/08 10:55:56 I'm wondering if we need the concept of DEFAULT; w
dullweber 2017/02/08 23:03:18 That works as well. I will add a comment that the
+ BASIC,
+ ADVANCED,
+ NUM_TYPES
+};
+
+} // namespace browsing_data
+
+#endif // COMPONENTS_BROWSING_DATA_CORE_BROWSING_DATA_ENUMS_H_

Powered by Google App Engine
This is Rietveld 408576698