| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class LocalFrame; | 33 class LocalFrame; |
| 34 class KURL; | 34 class KURL; |
| 35 | 35 |
| 36 class DocumentLoadTiming { | 36 class DocumentLoadTiming { |
| 37 public: | 37 public: |
| 38 DocumentLoadTiming(); | 38 DocumentLoadTiming(); |
| 39 | 39 |
| 40 double monotonicTimeToZeroBasedDocumentTime(double) const; | |
| 41 double monotonicTimeToPseudoWallTime(double) const; | 40 double monotonicTimeToPseudoWallTime(double) const; |
| 42 | 41 |
| 43 void markNavigationStart(); | 42 void markNavigationStart(); |
| 44 void setNavigationStart(double); | 43 void setNavigationStart(double); |
| 45 | 44 |
| 46 void markUnloadEventStart() { m_unloadEventStart = monotonicallyIncreasingTi
me(); } | 45 void markUnloadEventStart() { m_unloadEventStart = monotonicallyIncreasingTi
me(); } |
| 47 void markUnloadEventEnd() { m_unloadEventEnd = monotonicallyIncreasingTime()
; } | 46 void markUnloadEventEnd() { m_unloadEventEnd = monotonicallyIncreasingTime()
; } |
| 48 void markFetchStart() { m_fetchStart = monotonicallyIncreasingTime(); } | 47 void markFetchStart() { m_fetchStart = monotonicallyIncreasingTime(); } |
| 49 void setResponseEnd(double monotonicTime) { m_responseEnd = monotonicTime; } | 48 void setResponseEnd(double monotonicTime) { m_responseEnd = monotonicTime; } |
| 50 void markLoadEventStart() { m_loadEventStart = monotonicallyIncreasingTime()
; } | 49 void markLoadEventStart() { m_loadEventStart = monotonicallyIncreasingTime()
; } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 72 double m_fetchStart; | 71 double m_fetchStart; |
| 73 double m_responseEnd; | 72 double m_responseEnd; |
| 74 double m_loadEventStart; | 73 double m_loadEventStart; |
| 75 double m_loadEventEnd; | 74 double m_loadEventEnd; |
| 76 bool m_hasSameOriginAsPreviousDocument; | 75 bool m_hasSameOriginAsPreviousDocument; |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 } // namespace blink | 78 } // namespace blink |
| 80 | 79 |
| 81 #endif // SKY_ENGINE_CORE_LOADER_DOCUMENTLOADTIMING_H_ | 80 #endif // SKY_ENGINE_CORE_LOADER_DOCUMENTLOADTIMING_H_ |
| OLD | NEW |