OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 22 matching lines...) Expand all Loading... |
33 #define PerformanceResourceTiming_h | 33 #define PerformanceResourceTiming_h |
34 | 34 |
35 #include "core/timing/PerformanceEntry.h" | 35 #include "core/timing/PerformanceEntry.h" |
36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class Document; | 42 class Document; |
43 class KURL; | |
44 class ResourceLoadTiming; | 43 class ResourceLoadTiming; |
45 class ResourceRequest; | |
46 class ResourceResponse; | |
47 class ResourceTimingInfo; | 44 class ResourceTimingInfo; |
48 | 45 |
49 class PerformanceResourceTiming final : public PerformanceEntry { | 46 class PerformanceResourceTiming final : public PerformanceEntry { |
50 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
51 public: | 48 public: |
52 static PassRefPtrWillBeRawPtr<PerformanceResourceTiming> create(const Resour
ceTimingInfo& info, Document* requestingDocument, double startTime, double lastR
edirectEndTime, bool m_allowTimingDetails, bool m_allowRedirectDetails) | 49 static PassRefPtrWillBeRawPtr<PerformanceResourceTiming> create(const Resour
ceTimingInfo& info, Document* requestingDocument, double startTime, double lastR
edirectEndTime, bool m_allowTimingDetails, bool m_allowRedirectDetails) |
53 { | 50 { |
54 return adoptRefWillBeNoop(new PerformanceResourceTiming(info, requesting
Document, startTime, lastRedirectEndTime, m_allowTimingDetails, m_allowRedirectD
etails)); | 51 return adoptRefWillBeNoop(new PerformanceResourceTiming(info, requesting
Document, startTime, lastRedirectEndTime, m_allowTimingDetails, m_allowRedirectD
etails)); |
55 } | 52 } |
56 | 53 |
(...skipping 30 matching lines...) Expand all Loading... |
87 double m_finishTime; | 84 double m_finishTime; |
88 bool m_didReuseConnection; | 85 bool m_didReuseConnection; |
89 bool m_allowTimingDetails; | 86 bool m_allowTimingDetails; |
90 bool m_allowRedirectDetails; | 87 bool m_allowRedirectDetails; |
91 RefPtrWillBeMember<Document> m_requestingDocument; | 88 RefPtrWillBeMember<Document> m_requestingDocument; |
92 }; | 89 }; |
93 | 90 |
94 } // namespace blink | 91 } // namespace blink |
95 | 92 |
96 #endif // PerformanceResourceTiming_h | 93 #endif // PerformanceResourceTiming_h |
OLD | NEW |