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

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

Issue 137623002: Let MetricsService know about some Android Activities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: line warp fix Created 6 years, 11 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: 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..606f8759519b596cddfa6a33e8807a8c43cb4f5d
--- /dev/null
+++ b/chrome/browser/android/activity_type_ids.h
@@ -0,0 +1,23 @@
+// Copyright 2014 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 {
+
+enum Type {
+#define DEFINE_ACTIVITY_ID(id,value) ACTIVITY_##id = (value),
+#include "activity_type_id_list.h"
+#undef DEFINE_ACTIVITY_ID
+}; // enum Type
+
+// Takes an int corresponding to a Type and returns the corresponding Type.
+Type GetActivityType(int type_id);
+
+} // namespace ActivityTypeIds
+
+#endif // CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_

Powered by Google App Engine
This is Rietveld 408576698