| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2015 Google Inc. All rights reserved. | 2 * Copyright (C) 2015 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2015 Intel Inc. All rights reserved. | 3 * Copyright (C) 2015 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public: | 46 public: |
| 47 static PerformanceRenderTiming* create(Document* requestingDocument, unsigne
d sourceFrame, double startTime, double finishTime) | 47 static PerformanceRenderTiming* create(Document* requestingDocument, unsigne
d sourceFrame, double startTime, double finishTime) |
| 48 { | 48 { |
| 49 return new PerformanceRenderTiming(requestingDocument, sourceFrame, star
tTime, finishTime); | 49 return new PerformanceRenderTiming(requestingDocument, sourceFrame, star
tTime, finishTime); |
| 50 } | 50 } |
| 51 | 51 |
| 52 unsigned sourceFrame() const; | 52 unsigned sourceFrame() const; |
| 53 | 53 |
| 54 DECLARE_VIRTUAL_TRACE(); | 54 DECLARE_VIRTUAL_TRACE(); |
| 55 | 55 |
| 56 protected: |
| 57 void buildJSONValue(V8ObjectBuilder&) const override; |
| 58 |
| 56 private: | 59 private: |
| 57 PerformanceRenderTiming(Document* requestingDocument, unsigned sourceFrame,
double startTime, double finishTime); | 60 PerformanceRenderTiming(Document* requestingDocument, unsigned sourceFrame,
double startTime, double finishTime); |
| 58 ~PerformanceRenderTiming() override; | 61 ~PerformanceRenderTiming() override; |
| 59 | 62 |
| 60 unsigned m_sourceFrame; | 63 unsigned m_sourceFrame; |
| 61 RefPtrWillBeMember<Document> m_requestingDocument; | 64 RefPtrWillBeMember<Document> m_requestingDocument; |
| 62 }; | 65 }; |
| 63 | 66 |
| 64 } // namespace blink | 67 } // namespace blink |
| 65 | 68 |
| 66 #endif // PerformanceRenderTiming_h | 69 #endif // PerformanceRenderTiming_h |
| OLD | NEW |