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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class Document; | 41 class Document; |
42 class KURL; | 42 class KURL; |
43 class ResourceLoadTiming; | 43 class ResourceLoadTiming; |
44 class ResourceRequest; | 44 class ResourceRequest; |
45 class ResourceResponse; | 45 class ResourceResponse; |
46 class ResourceTimingInfo; | 46 class ResourceTimingInfo; |
47 | 47 |
48 class PerformanceResourceTiming : public PerformanceEntry { | 48 class PerformanceResourceTiming FINAL : public PerformanceEntry { |
49 public: | 49 public: |
50 static PassRefPtr<PerformanceResourceTiming> create(const ResourceTimingInfo
& info, Document* requestingDocument, double startTime, double lastRedirectEndTi
me, bool m_allowTimingDetails, bool m_allowRedirectDetails) | 50 static PassRefPtr<PerformanceResourceTiming> create(const ResourceTimingInfo
& info, Document* requestingDocument, double startTime, double lastRedirectEndTi
me, bool m_allowTimingDetails, bool m_allowRedirectDetails) |
51 { | 51 { |
52 return adoptRef(new PerformanceResourceTiming(info, requestingDocument,
startTime, lastRedirectEndTime, m_allowTimingDetails, m_allowRedirectDetails)); | 52 return adoptRef(new PerformanceResourceTiming(info, requestingDocument,
startTime, lastRedirectEndTime, m_allowTimingDetails, m_allowRedirectDetails)); |
53 } | 53 } |
54 | 54 |
55 static PassRefPtr<PerformanceResourceTiming> create(const ResourceTimingInfo
& info, Document* requestingDocument, double startTime, bool m_allowTimingDetail
s) | 55 static PassRefPtr<PerformanceResourceTiming> create(const ResourceTimingInfo
& info, Document* requestingDocument, double startTime, bool m_allowTimingDetail
s) |
56 { | 56 { |
57 return adoptRef(new PerformanceResourceTiming(info, requestingDocument,
startTime, 0.0, m_allowTimingDetails, false)); | 57 return adoptRef(new PerformanceResourceTiming(info, requestingDocument,
startTime, 0.0, m_allowTimingDetails, false)); |
58 } | 58 } |
59 | 59 |
60 AtomicString initiatorType() const; | 60 AtomicString initiatorType() const; |
61 | 61 |
62 double redirectStart() const; | 62 double redirectStart() const; |
63 double redirectEnd() const; | 63 double redirectEnd() const; |
64 double fetchStart() const; | 64 double fetchStart() const; |
65 double domainLookupStart() const; | 65 double domainLookupStart() const; |
66 double domainLookupEnd() const; | 66 double domainLookupEnd() const; |
67 double connectStart() const; | 67 double connectStart() const; |
68 double connectEnd() const; | 68 double connectEnd() const; |
69 double secureConnectionStart() const; | 69 double secureConnectionStart() const; |
70 double requestStart() const; | 70 double requestStart() const; |
71 double responseStart() const; | 71 double responseStart() const; |
72 double responseEnd() const; | 72 double responseEnd() const; |
73 | 73 |
74 virtual bool isResource() { return true; } | 74 virtual bool isResource() OVERRIDE { return true; } |
75 | 75 |
76 private: | 76 private: |
77 PerformanceResourceTiming(const ResourceTimingInfo&, Document* requestingDoc
ument, double startTime, double lastRedirectEndTime, bool m_allowTimingDetails,
bool m_allowRedirectDetails); | 77 PerformanceResourceTiming(const ResourceTimingInfo&, Document* requestingDoc
ument, double startTime, double lastRedirectEndTime, bool m_allowTimingDetails,
bool m_allowRedirectDetails); |
78 ~PerformanceResourceTiming(); | 78 virtual ~PerformanceResourceTiming(); |
79 | 79 |
80 AtomicString m_initiatorType; | 80 AtomicString m_initiatorType; |
81 RefPtr<ResourceLoadTiming> m_timing; | 81 RefPtr<ResourceLoadTiming> m_timing; |
82 double m_lastRedirectEndTime; | 82 double m_lastRedirectEndTime; |
83 double m_finishTime; | 83 double m_finishTime; |
84 bool m_didReuseConnection; | 84 bool m_didReuseConnection; |
85 bool m_allowTimingDetails; | 85 bool m_allowTimingDetails; |
86 bool m_allowRedirectDetails; | 86 bool m_allowRedirectDetails; |
87 RefPtr<Document> m_requestingDocument; | 87 RefPtr<Document> m_requestingDocument; |
88 }; | 88 }; |
89 | 89 |
90 } | 90 } |
91 | 91 |
92 #endif // !defined(PerformanceResourceTiming_h) | 92 #endif // !defined(PerformanceResourceTiming_h) |
OLD | NEW |