Index: content/browser/web_contents/aura/types.h |
diff --git a/content/browser/web_contents/aura/uma_navigation_type.h b/content/browser/web_contents/aura/types.h |
similarity index 51% |
rename from content/browser/web_contents/aura/uma_navigation_type.h |
rename to content/browser/web_contents/aura/types.h |
index 53294b9d9196368d311d334630d2ac2a872c6b81..4257371468cabfac654a6f7e3000e8e9d87273f8 100644 |
--- a/content/browser/web_contents/aura/uma_navigation_type.h |
+++ b/content/browser/web_contents/aura/types.h |
@@ -2,8 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_ |
+#define CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_ |
+ |
+#include "content/browser/renderer_host/overscroll_controller.h" |
+ |
namespace content { |
+enum class NavigationDirection { NONE, FORWARD, BACK, NAVIGATION_COUNT }; |
+ |
// Note that this enum is used to back an UMA histogram, so it should be |
// treated as append-only. |
enum UmaNavigationType { |
@@ -15,4 +22,9 @@ enum UmaNavigationType { |
NAVIGATION_TYPE_COUNT, |
}; |
+UmaNavigationType GetUmaNavigationType(NavigationDirection direction, |
+ OverscrollSource source); |
+ |
} // namespace content |
+ |
+#endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_TYPES_H_ |