| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 ExecutionContext*); | 148 ExecutionContext*); |
| 149 | 149 |
| 150 static bool passesTimingAllowCheck(const ResourceResponse&, | 150 static bool passesTimingAllowCheck(const ResourceResponse&, |
| 151 const SecurityOrigin&, | 151 const SecurityOrigin&, |
| 152 const AtomicString&, | 152 const AtomicString&, |
| 153 ExecutionContext*); | 153 ExecutionContext*); |
| 154 | 154 |
| 155 void addPaintTiming(PerformancePaintTiming::PaintType, double startTime); | 155 void addPaintTiming(PerformancePaintTiming::PaintType, double startTime); |
| 156 | 156 |
| 157 protected: | 157 protected: |
| 158 explicit PerformanceBase(double timeOrigin); | 158 explicit PerformanceBase(double timeOrigin, RefPtr<WebTaskRunner>); |
| 159 | 159 |
| 160 bool isResourceTimingBufferFull(); | 160 bool isResourceTimingBufferFull(); |
| 161 void addResourceTimingBuffer(PerformanceEntry&); | 161 void addResourceTimingBuffer(PerformanceEntry&); |
| 162 | 162 |
| 163 bool isFrameTimingBufferFull(); | 163 bool isFrameTimingBufferFull(); |
| 164 void addFrameTimingBuffer(PerformanceEntry&); | 164 void addFrameTimingBuffer(PerformanceEntry&); |
| 165 | 165 |
| 166 void notifyObserversOfEntry(PerformanceEntry&); | 166 void notifyObserversOfEntry(PerformanceEntry&); |
| 167 bool hasObserverFor(PerformanceEntry::EntryType) const; | 167 bool hasObserverFor(PerformanceEntry::EntryType) const; |
| 168 | 168 |
| 169 void deliverObservationsTimerFired(TimerBase*); | 169 void deliverObservationsTimerFired(TimerBase*); |
| 170 | 170 |
| 171 PerformanceEntryVector m_frameTimingBuffer; | 171 PerformanceEntryVector m_frameTimingBuffer; |
| 172 unsigned m_frameTimingBufferSize; | 172 unsigned m_frameTimingBufferSize; |
| 173 PerformanceEntryVector m_resourceTimingBuffer; | 173 PerformanceEntryVector m_resourceTimingBuffer; |
| 174 unsigned m_resourceTimingBufferSize; | 174 unsigned m_resourceTimingBufferSize; |
| 175 Member<PerformanceEntry> m_navigationTiming; | 175 Member<PerformanceEntry> m_navigationTiming; |
| 176 Member<UserTiming> m_userTiming; | 176 Member<UserTiming> m_userTiming; |
| 177 | 177 |
| 178 double m_timeOrigin; | 178 double m_timeOrigin; |
| 179 | 179 |
| 180 PerformanceEntryTypeMask m_observerFilterOptions; | 180 PerformanceEntryTypeMask m_observerFilterOptions; |
| 181 PerformanceObservers m_observers; | 181 PerformanceObservers m_observers; |
| 182 PerformanceObservers m_activeObservers; | 182 PerformanceObservers m_activeObservers; |
| 183 PerformanceObservers m_suspendedObservers; | 183 PerformanceObservers m_suspendedObservers; |
| 184 Timer<PerformanceBase> m_deliverObservationsTimer; | 184 TaskRunnerTimer<PerformanceBase> m_deliverObservationsTimer; |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 } // namespace blink | 187 } // namespace blink |
| 188 | 188 |
| 189 #endif // PerformanceBase_h | 189 #endif // PerformanceBase_h |
| OLD | NEW |