| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class Document; | 47 class Document; |
| 48 class ExceptionState; | 48 class ExceptionState; |
| 49 class PerformanceObserver; | 49 class PerformanceObserver; |
| 50 class PerformanceTiming; | 50 class PerformanceTiming; |
| 51 class ResourceTimingInfo; | 51 class ResourceTimingInfo; |
| 52 class UserTiming; | 52 class UserTiming; |
| 53 | 53 |
| 54 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; | 54 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; |
| 55 using PerformanceObservers = HeapListHashSet<Member<PerformanceObserver>>; | 55 using PerformanceObservers = HeapListHashSet<Member<PerformanceObserver>>; |
| 56 | 56 |
| 57 class CORE_EXPORT PerformanceBase : public RefCountedGarbageCollectedEventTarget
WithInlineData<PerformanceBase> { | 57 class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
| 58 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PerformanceBase); | 58 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PerformanceBase); |
| 59 public: | 59 public: |
| 60 ~PerformanceBase() override; | 60 ~PerformanceBase() override; |
| 61 | 61 |
| 62 const AtomicString& interfaceName() const override; | 62 const AtomicString& interfaceName() const override; |
| 63 | 63 |
| 64 virtual PerformanceTiming* timing() const; | 64 virtual PerformanceTiming* timing() const; |
| 65 | 65 |
| 66 // Reduce the resolution to 5µs to prevent timing attacks. See: | 66 // Reduce the resolution to 5µs to prevent timing attacks. See: |
| 67 // http://www.w3.org/TR/hr-time-2/#privacy-security | 67 // http://www.w3.org/TR/hr-time-2/#privacy-security |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 PerformanceEntryTypeMask m_observerFilterOptions; | 136 PerformanceEntryTypeMask m_observerFilterOptions; |
| 137 PerformanceObservers m_observers; | 137 PerformanceObservers m_observers; |
| 138 PerformanceObservers m_activeObservers; | 138 PerformanceObservers m_activeObservers; |
| 139 PerformanceObservers m_suspendedObservers; | 139 PerformanceObservers m_suspendedObservers; |
| 140 Timer<PerformanceBase> m_deliverObservationsTimer; | 140 Timer<PerformanceBase> m_deliverObservationsTimer; |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace blink | 143 } // namespace blink |
| 144 | 144 |
| 145 #endif // PerformanceBase_h | 145 #endif // PerformanceBase_h |
| OLD | NEW |