Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PerformanceNavigationTiming_h | 5 #ifndef PerformanceNavigationTiming_h |
| 6 #define PerformanceNavigationTiming_h | 6 #define PerformanceNavigationTiming_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/dom/DOMHighResTimeStamp.h" | 10 #include "core/dom/DOMHighResTimeStamp.h" |
| 11 #include "core/loader/FrameLoaderTypes.h" | 11 #include "core/loader/FrameLoaderTypes.h" |
| 12 #include "core/timing/PerformanceResourceTiming.h" | 12 #include "core/timing/PerformanceResourceTiming.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class Document; | 16 class Document; |
| 17 class DocumentTiming; | 17 class DocumentTiming; |
| 18 class DocumentLoader; | 18 class DocumentLoader; |
| 19 class DocumentLoadTiming; | 19 class DocumentLoadTiming; |
| 20 class LocalFrame; | 20 class LocalFrame; |
| 21 class ExecutionContext; | 21 class ExecutionContext; |
| 22 class ResourceTimingInfo; | 22 class ResourceTimingInfo; |
| 23 class ResourceLoadTiming; | 23 class ResourceLoadTiming; |
| 24 | 24 |
| 25 using PerformanceServerTimingVector = | |
| 26 HeapVector<Member<PerformanceServerTiming>>; | |
|
Yoav Weiss
2017/06/29 06:57:33
Remove the definition from here
| |
| 27 | |
| 25 class CORE_EXPORT PerformanceNavigationTiming final | 28 class CORE_EXPORT PerformanceNavigationTiming final |
| 26 : public PerformanceResourceTiming, | 29 : public PerformanceResourceTiming, |
| 27 public ContextClient { | 30 public ContextClient { |
| 28 DEFINE_WRAPPERTYPEINFO(); | 31 DEFINE_WRAPPERTYPEINFO(); |
| 29 USING_GARBAGE_COLLECTED_MIXIN(PerformanceNavigationTiming); | 32 USING_GARBAGE_COLLECTED_MIXIN(PerformanceNavigationTiming); |
| 30 friend class PerformanceNavigationTimingTest; | 33 friend class PerformanceNavigationTimingTest; |
| 31 | 34 |
| 32 public: | 35 public: |
| 33 PerformanceNavigationTiming(LocalFrame*, | 36 PerformanceNavigationTiming(LocalFrame*, |
| 34 ResourceTimingInfo*, | 37 ResourceTimingInfo*, |
| 35 double time_origin); | 38 double time_origin, |
| 39 PerformanceServerTimingVector&); | |
| 36 | 40 |
| 37 // Attributes inheritted from PerformanceEntry. | 41 // Attributes inheritted from PerformanceEntry. |
| 38 DOMHighResTimeStamp duration() const override; | 42 DOMHighResTimeStamp duration() const override; |
| 39 | 43 |
| 40 AtomicString initiatorType() const override; | 44 AtomicString initiatorType() const override; |
| 41 | 45 |
| 42 // PerformanceNavigationTiming's unique attributes. | 46 // PerformanceNavigationTiming's unique attributes. |
| 43 DOMHighResTimeStamp unloadEventStart() const; | 47 DOMHighResTimeStamp unloadEventStart() const; |
| 44 DOMHighResTimeStamp unloadEventEnd() const; | 48 DOMHighResTimeStamp unloadEventEnd() const; |
| 45 DOMHighResTimeStamp domInteractive() const; | 49 DOMHighResTimeStamp domInteractive() const; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 virtual unsigned long long GetDecodedBodySize() const; | 83 virtual unsigned long long GetDecodedBodySize() const; |
| 80 | 84 |
| 81 bool GetAllowRedirectDetails() const; | 85 bool GetAllowRedirectDetails() const; |
| 82 | 86 |
| 83 double time_origin_; | 87 double time_origin_; |
| 84 RefPtr<ResourceTimingInfo> resource_timing_info_; | 88 RefPtr<ResourceTimingInfo> resource_timing_info_; |
| 85 }; | 89 }; |
| 86 } // namespace blink | 90 } // namespace blink |
| 87 | 91 |
| 88 #endif // PerformanceNavigationTiming_h | 92 #endif // PerformanceNavigationTiming_h |
| OLD | NEW |