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

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

Issue 2615533002: Remove duplicate domHighResTimestamp conversion in NavigationTiming (Closed)
Patch Set: fixed layout test failures Created 3 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 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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 PerformanceEntry::~PerformanceEntry() {} 48 PerformanceEntry::~PerformanceEntry() {}
49 49
50 String PerformanceEntry::name() const { 50 String PerformanceEntry::name() const {
51 return m_name; 51 return m_name;
52 } 52 }
53 53
54 String PerformanceEntry::entryType() const { 54 String PerformanceEntry::entryType() const {
55 return m_entryType; 55 return m_entryType;
56 } 56 }
57 57
58 double PerformanceEntry::startTime() const { 58 DOMHighResTimeStamp PerformanceEntry::startTime() const {
59 return m_startTime; 59 return m_startTime;
60 } 60 }
61 61
62 double PerformanceEntry::duration() const { 62 DOMHighResTimeStamp PerformanceEntry::duration() const {
63 return m_duration; 63 return m_duration;
64 } 64 }
65 65
66 PerformanceEntry::EntryType PerformanceEntry::toEntryTypeEnum( 66 PerformanceEntry::EntryType PerformanceEntry::toEntryTypeEnum(
67 const String& entryType) { 67 const String& entryType) {
68 if (entryType == "composite") 68 if (entryType == "composite")
69 return Composite; 69 return Composite;
70 if (entryType == "longtask") 70 if (entryType == "longtask")
71 return LongTask; 71 return LongTask;
72 if (entryType == "mark") 72 if (entryType == "mark")
(...skipping 18 matching lines...) Expand all
91 } 91 }
92 92
93 void PerformanceEntry::buildJSONValue(V8ObjectBuilder& builder) const { 93 void PerformanceEntry::buildJSONValue(V8ObjectBuilder& builder) const {
94 builder.addString("name", name()); 94 builder.addString("name", name());
95 builder.addString("entryType", entryType()); 95 builder.addString("entryType", entryType());
96 builder.addNumber("startTime", startTime()); 96 builder.addNumber("startTime", startTime());
97 builder.addNumber("duration", duration()); 97 builder.addNumber("duration", duration());
98 } 98 }
99 99
100 } // namespace blink 100 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698