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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void activateObserver(PerformanceObserver&); | 125 void activateObserver(PerformanceObserver&); |
126 void resumeSuspendedObservers(); | 126 void resumeSuspendedObservers(); |
127 | 127 |
128 DECLARE_VIRTUAL_TRACE(); | 128 DECLARE_VIRTUAL_TRACE(); |
129 | 129 |
130 private: | 130 private: |
131 static PerformanceNavigationTiming::NavigationType getNavigationType( | 131 static PerformanceNavigationTiming::NavigationType getNavigationType( |
132 NavigationType, | 132 NavigationType, |
133 const Document*); | 133 const Document*); |
134 | 134 |
| 135 static bool allowsTimingRedirect(const Vector<ResourceResponse>&, |
| 136 const ResourceResponse&, |
| 137 const SecurityOrigin&, |
| 138 ExecutionContext*); |
| 139 |
| 140 static bool passesTimingAllowCheck(const ResourceResponse&, |
| 141 const SecurityOrigin&, |
| 142 const AtomicString&, |
| 143 ExecutionContext*); |
| 144 |
135 protected: | 145 protected: |
136 explicit PerformanceBase(double timeOrigin); | 146 explicit PerformanceBase(double timeOrigin); |
137 | 147 |
138 bool isResourceTimingBufferFull(); | 148 bool isResourceTimingBufferFull(); |
139 void addResourceTimingBuffer(PerformanceEntry&); | 149 void addResourceTimingBuffer(PerformanceEntry&); |
140 | 150 |
141 bool isFrameTimingBufferFull(); | 151 bool isFrameTimingBufferFull(); |
142 void addFrameTimingBuffer(PerformanceEntry&); | 152 void addFrameTimingBuffer(PerformanceEntry&); |
143 | 153 |
144 void notifyObserversOfEntry(PerformanceEntry&); | 154 void notifyObserversOfEntry(PerformanceEntry&); |
(...skipping 13 matching lines...) Expand all Loading... |
158 PerformanceEntryTypeMask m_observerFilterOptions; | 168 PerformanceEntryTypeMask m_observerFilterOptions; |
159 PerformanceObservers m_observers; | 169 PerformanceObservers m_observers; |
160 PerformanceObservers m_activeObservers; | 170 PerformanceObservers m_activeObservers; |
161 PerformanceObservers m_suspendedObservers; | 171 PerformanceObservers m_suspendedObservers; |
162 Timer<PerformanceBase> m_deliverObservationsTimer; | 172 Timer<PerformanceBase> m_deliverObservationsTimer; |
163 }; | 173 }; |
164 | 174 |
165 } // namespace blink | 175 } // namespace blink |
166 | 176 |
167 #endif // PerformanceBase_h | 177 #endif // PerformanceBase_h |
OLD | NEW |