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; |
| 65 WEBKIT_EXPORT void setProxyStart(double); |
| 66 |
| 67 WEBKIT_EXPORT double proxyEnd() const; |
| 68 WEBKIT_EXPORT void setProxyEnd(double); |
| 69 |
| 70 WEBKIT_EXPORT double dnsStart() const; |
| 71 WEBKIT_EXPORT void setDNSStart(double); |
| 72 |
| 73 WEBKIT_EXPORT double dnsEnd() const; |
| 74 WEBKIT_EXPORT void setDNSEnd(double); |
| 75 |
| 76 WEBKIT_EXPORT double connectStart() const; |
| 77 WEBKIT_EXPORT void setConnectStart(double); |
| 78 |
| 79 WEBKIT_EXPORT double connectEnd() const; |
| 80 WEBKIT_EXPORT void setConnectEnd(double); |
| 81 |
| 82 WEBKIT_EXPORT double sendStart() const; |
| 83 WEBKIT_EXPORT void setSendStart(double); |
| 84 |
| 85 WEBKIT_EXPORT double sendEnd() const; |
| 86 WEBKIT_EXPORT void setSendEnd(double); |
| 87 |
| 88 WEBKIT_EXPORT double receiveHeadersEnd() const; |
| 89 WEBKIT_EXPORT void setReceiveHeadersEnd(double); |
| 90 |
| 91 WEBKIT_EXPORT double sslStart() const; |
| 92 WEBKIT_EXPORT void setSSLStart(double); |
| 93 |
| 94 WEBKIT_EXPORT double sslEnd() const; |
| 95 WEBKIT_EXPORT void setSSLEnd(double); |
| 96 #else |
63 WEBKIT_EXPORT int proxyStart() const; | 97 WEBKIT_EXPORT int proxyStart() const; |
64 WEBKIT_EXPORT void setProxyStart(int); | 98 WEBKIT_EXPORT void setProxyStart(int); |
65 | 99 |
66 WEBKIT_EXPORT int proxyEnd() const; | 100 WEBKIT_EXPORT int proxyEnd() const; |
67 WEBKIT_EXPORT void setProxyEnd(int); | 101 WEBKIT_EXPORT void setProxyEnd(int); |
68 | 102 |
69 WEBKIT_EXPORT int dnsStart() const; | 103 WEBKIT_EXPORT int dnsStart() const; |
70 WEBKIT_EXPORT void setDNSStart(int); | 104 WEBKIT_EXPORT void setDNSStart(int); |
71 | 105 |
72 WEBKIT_EXPORT int dnsEnd() const; | 106 WEBKIT_EXPORT int dnsEnd() const; |
(...skipping 12 matching lines...) Expand all Loading... |
85 WEBKIT_EXPORT void setSendEnd(int); | 119 WEBKIT_EXPORT void setSendEnd(int); |
86 | 120 |
87 WEBKIT_EXPORT int receiveHeadersEnd() const; | 121 WEBKIT_EXPORT int receiveHeadersEnd() const; |
88 WEBKIT_EXPORT void setReceiveHeadersEnd(int); | 122 WEBKIT_EXPORT void setReceiveHeadersEnd(int); |
89 | 123 |
90 WEBKIT_EXPORT int sslStart() const; | 124 WEBKIT_EXPORT int sslStart() const; |
91 WEBKIT_EXPORT void setSSLStart(int); | 125 WEBKIT_EXPORT void setSSLStart(int); |
92 | 126 |
93 WEBKIT_EXPORT int sslEnd() const; | 127 WEBKIT_EXPORT int sslEnd() const; |
94 WEBKIT_EXPORT void setSSLEnd(int); | 128 WEBKIT_EXPORT void setSSLEnd(int); |
| 129 #endif |
95 | 130 |
96 #if WEBKIT_IMPLEMENTATION | 131 #if WEBKIT_IMPLEMENTATION |
97 WebURLLoadTiming(const WTF::PassRefPtr<WebCore::ResourceLoadTiming>&); | 132 WebURLLoadTiming(const WTF::PassRefPtr<WebCore::ResourceLoadTiming>&); |
98 WebURLLoadTiming& operator=(const WTF::PassRefPtr<WebCore::ResourceLoadTimin
g>&); | 133 WebURLLoadTiming& operator=(const WTF::PassRefPtr<WebCore::ResourceLoadTimin
g>&); |
99 operator WTF::PassRefPtr<WebCore::ResourceLoadTiming>() const; | 134 operator WTF::PassRefPtr<WebCore::ResourceLoadTiming>() const; |
100 #endif | 135 #endif |
101 | 136 |
102 private: | 137 private: |
103 WebPrivatePtr<WebCore::ResourceLoadTiming> m_private; | 138 WebPrivatePtr<WebCore::ResourceLoadTiming> m_private; |
104 }; | 139 }; |
105 | 140 |
106 } // namespace WebKit | 141 } // namespace WebKit |
107 | 142 |
108 #endif | 143 #endif |
OLD | NEW |