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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceEntry.h

Issue 2839683003: Server-Timing (Closed)
Patch Set: make those robots happy, attempt #4 Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 enum EntryType : PerformanceEntryType { 58 enum EntryType : PerformanceEntryType {
59 kInvalid = 0, 59 kInvalid = 0,
60 kNavigation = 1 << 0, 60 kNavigation = 1 << 0,
61 kComposite = 1 << 1, 61 kComposite = 1 << 1,
62 kMark = 1 << 2, 62 kMark = 1 << 2,
63 kMeasure = 1 << 3, 63 kMeasure = 1 << 3,
64 kRender = 1 << 4, 64 kRender = 1 << 4,
65 kResource = 1 << 5, 65 kResource = 1 << 5,
66 kLongTask = 1 << 6, 66 kLongTask = 1 << 6,
67 kTaskAttribution = 1 << 7, 67 kTaskAttribution = 1 << 7,
68 kPaint = 1 << 8 68 kPaint = 1 << 8,
69 kServer = 1 << 9
69 }; 70 };
70 71
71 String name() const; 72 String name() const;
72 String entryType() const; 73 String entryType() const;
73 DOMHighResTimeStamp startTime() const; 74 DOMHighResTimeStamp startTime() const;
74 // PerformanceNavigationTiming will override this due to 75 // PerformanceNavigationTiming will override this due to
75 // the nature of reporting it early, which means not having a 76 // the nature of reporting it early, which means not having a
76 // finish time available at construction time. 77 // finish time available at construction time.
77 // Other classes must NOT override this. 78 // Other classes must NOT override this.
78 virtual DOMHighResTimeStamp duration() const; 79 virtual DOMHighResTimeStamp duration() const;
(...skipping 28 matching lines...) Expand all
107 const String name_; 108 const String name_;
108 const String entry_type_; 109 const String entry_type_;
109 const double start_time_; 110 const double start_time_;
110 const double duration_; 111 const double duration_;
111 const PerformanceEntryType entry_type_enum_; 112 const PerformanceEntryType entry_type_enum_;
112 }; 113 };
113 114
114 } // namespace blink 115 } // namespace blink
115 116
116 #endif // PerformanceEntry_h 117 #endif // PerformanceEntry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698