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

Unified Diff: chrome/browser/android/activity_type_ids.h

Issue 103943006: Let MetricsService know about some Android Activities (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NOTREACHED Created 7 years 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: chrome/browser/android/activity_type_ids.h
diff --git a/chrome/browser/android/activity_type_ids.h b/chrome/browser/android/activity_type_ids.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b28ff8830035eac59f9cd914fbd42290b335312
--- /dev/null
+++ b/chrome/browser/android/activity_type_ids.h
@@ -0,0 +1,28 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_
+#define CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_
+
+// This file maps Activities on Chrome to specific flags for identification.
+namespace ActivityTypeIds {
+
+// Consecutive IDs assigned to Activity types on Android.
+enum Type {
+#define DEFINE_ACTIVITY_TYPE_ID(id,value) ACTIVITY_TYPE_##id = (value),
+#include "chrome/browser/android/activity_type_ids_definitions.h"
+#undef DEFINE_ACTIVITY_TYPE_ID
+}; // enum Type
+
+// Flags defining Activities we are interested in tracking. Uses powers of 2
+// for any IDs since these get ORed together.
+enum Flag {
+#define DEFINE_ACTIVITY_TYPE_ID(id,value) ACTIVITY_FLAG_##id = (1 << (value)),
+#include "chrome/browser/android/activity_type_ids_definitions.h"
+#undef DEFINE_ACTIVITY_TYPE_ID
+}; // enum Flags
+
+} // namespace ActivityTypeIds
+
+#endif // CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_

Powered by Google App Engine
This is Rietveld 408576698