OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 WEBKIT_EXPORT void initialize(); | 54 WEBKIT_EXPORT void initialize(); |
55 WEBKIT_EXPORT void reset(); | 55 WEBKIT_EXPORT void reset(); |
56 WEBKIT_EXPORT void assign(const WebURLLoadTiming&); | 56 WEBKIT_EXPORT void assign(const WebURLLoadTiming&); |
57 | 57 |
58 bool isNull() const { return m_private.isNull(); } | 58 bool isNull() const { return m_private.isNull(); } |
59 | 59 |
60 WEBKIT_EXPORT double requestTime() const; | 60 WEBKIT_EXPORT double requestTime() const; |
61 WEBKIT_EXPORT void setRequestTime(double); | 61 WEBKIT_EXPORT void setRequestTime(double); |
62 | 62 |
63 #ifdef ENABLE_DOUBLE_RESOURCE_LOAD_TIMING | |
64 WEBKIT_EXPORT double proxyStart() const; | 63 WEBKIT_EXPORT double proxyStart() const; |
65 WEBKIT_EXPORT void setProxyStart(double); | 64 WEBKIT_EXPORT void setProxyStart(double); |
66 | 65 |
67 WEBKIT_EXPORT double proxyEnd() const; | 66 WEBKIT_EXPORT double proxyEnd() const; |
68 WEBKIT_EXPORT void setProxyEnd(double); | 67 WEBKIT_EXPORT void setProxyEnd(double); |
69 | 68 |
70 WEBKIT_EXPORT double dnsStart() const; | 69 WEBKIT_EXPORT double dnsStart() const; |
71 WEBKIT_EXPORT void setDNSStart(double); | 70 WEBKIT_EXPORT void setDNSStart(double); |
72 | 71 |
73 WEBKIT_EXPORT double dnsEnd() const; | 72 WEBKIT_EXPORT double dnsEnd() const; |
(...skipping 12 matching lines...) Expand all Loading... |
86 WEBKIT_EXPORT void setSendEnd(double); | 85 WEBKIT_EXPORT void setSendEnd(double); |
87 | 86 |
88 WEBKIT_EXPORT double receiveHeadersEnd() const; | 87 WEBKIT_EXPORT double receiveHeadersEnd() const; |
89 WEBKIT_EXPORT void setReceiveHeadersEnd(double); | 88 WEBKIT_EXPORT void setReceiveHeadersEnd(double); |
90 | 89 |
91 WEBKIT_EXPORT double sslStart() const; | 90 WEBKIT_EXPORT double sslStart() const; |
92 WEBKIT_EXPORT void setSSLStart(double); | 91 WEBKIT_EXPORT void setSSLStart(double); |
93 | 92 |
94 WEBKIT_EXPORT double sslEnd() const; | 93 WEBKIT_EXPORT double sslEnd() const; |
95 WEBKIT_EXPORT void setSSLEnd(double); | 94 WEBKIT_EXPORT void setSSLEnd(double); |
96 #else | |
97 WEBKIT_EXPORT int proxyStart() const; | |
98 WEBKIT_EXPORT void setProxyStart(int); | |
99 | |
100 WEBKIT_EXPORT int proxyEnd() const; | |
101 WEBKIT_EXPORT void setProxyEnd(int); | |
102 | |
103 WEBKIT_EXPORT int dnsStart() const; | |
104 WEBKIT_EXPORT void setDNSStart(int); | |
105 | |
106 WEBKIT_EXPORT int dnsEnd() const; | |
107 WEBKIT_EXPORT void setDNSEnd(int); | |
108 | |
109 WEBKIT_EXPORT int connectStart() const; | |
110 WEBKIT_EXPORT void setConnectStart(int); | |
111 | |
112 WEBKIT_EXPORT int connectEnd() const; | |
113 WEBKIT_EXPORT void setConnectEnd(int); | |
114 | |
115 WEBKIT_EXPORT int sendStart() const; | |
116 WEBKIT_EXPORT void setSendStart(int); | |
117 | |
118 WEBKIT_EXPORT int sendEnd() const; | |
119 WEBKIT_EXPORT void setSendEnd(int); | |
120 | |
121 WEBKIT_EXPORT int receiveHeadersEnd() const; | |
122 WEBKIT_EXPORT void setReceiveHeadersEnd(int); | |
123 | |
124 WEBKIT_EXPORT int sslStart() const; | |
125 WEBKIT_EXPORT void setSSLStart(int); | |
126 | |
127 WEBKIT_EXPORT int sslEnd() const; | |
128 WEBKIT_EXPORT void setSSLEnd(int); | |
129 #endif | |
130 | 95 |
131 #if WEBKIT_IMPLEMENTATION | 96 #if WEBKIT_IMPLEMENTATION |
132 WebURLLoadTiming(const WTF::PassRefPtr<WebCore::ResourceLoadTiming>&); | 97 WebURLLoadTiming(const WTF::PassRefPtr<WebCore::ResourceLoadTiming>&); |
133 WebURLLoadTiming& operator=(const WTF::PassRefPtr<WebCore::ResourceLoadTimin
g>&); | 98 WebURLLoadTiming& operator=(const WTF::PassRefPtr<WebCore::ResourceLoadTimin
g>&); |
134 operator WTF::PassRefPtr<WebCore::ResourceLoadTiming>() const; | 99 operator WTF::PassRefPtr<WebCore::ResourceLoadTiming>() const; |
135 #endif | 100 #endif |
136 | 101 |
137 private: | 102 private: |
138 WebPrivatePtr<WebCore::ResourceLoadTiming> m_private; | 103 WebPrivatePtr<WebCore::ResourceLoadTiming> m_private; |
139 }; | 104 }; |
140 | 105 |
141 } // namespace WebKit | 106 } // namespace WebKit |
142 | 107 |
143 #endif | 108 #endif |
OLD | NEW |