Index: third_party/WebKit/Source/core/fetch/Resource.h |
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h |
index 36a1f2ad5b7be1cc22836cc07b21ac6b3616eb6b..0367bf36bd4d6f93a80f0ea1edcf6f017aee5d0b 100644 |
--- a/third_party/WebKit/Source/core/fetch/Resource.h |
+++ b/third_party/WebKit/Source/core/fetch/Resource.h |
@@ -57,6 +57,9 @@ class SharedBuffer; |
class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource> { |
WTF_MAKE_NONCOPYABLE(Resource); |
public: |
+ // |Type| enum values are used in UMAs, so do not change the values of |
+ // existing |Type|. When adding a new |Type|, append it at the last and |
Ilya Sherman
2016/07/12 21:23:17
nit: s/at the last/at the end
hiroshige
2016/07/15 07:47:05
Done.
|
+ // update |kLastResourceType|. |
enum Type { |
MainResource, |
Image, |
@@ -73,6 +76,7 @@ public: |
Media, // Audio or video file requested by a HTML5 media element |
Manifest |
}; |
+ static const int kLastResourceType = Manifest + 1; |
enum Status { |
NotStarted, |