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