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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 ~WebURLLoadTiming() { reset(); } | 44 ~WebURLLoadTiming() { reset(); } |
45 | 45 |
46 WebURLLoadTiming() { } | 46 WebURLLoadTiming() { } |
47 WebURLLoadTiming(const WebURLLoadTiming& d) { assign(d); } | 47 WebURLLoadTiming(const WebURLLoadTiming& d) { assign(d); } |
48 WebURLLoadTiming& operator=(const WebURLLoadTiming& d) | 48 WebURLLoadTiming& operator=(const WebURLLoadTiming& d) |
49 { | 49 { |
50 assign(d); | 50 assign(d); |
51 return *this; | 51 return *this; |
52 } | 52 } |
53 | 53 |
54 BLINK_EXPORT void initialize(); | 54 BLINK_PLATFORM_EXPORT void initialize(); |
55 BLINK_EXPORT void reset(); | 55 BLINK_PLATFORM_EXPORT void reset(); |
56 BLINK_EXPORT void assign(const WebURLLoadTiming&); | 56 BLINK_PLATFORM_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 BLINK_EXPORT double requestTime() const; | 60 BLINK_PLATFORM_EXPORT double requestTime() const; |
61 BLINK_EXPORT void setRequestTime(double); | 61 BLINK_PLATFORM_EXPORT void setRequestTime(double); |
62 | 62 |
63 BLINK_EXPORT double proxyStart() const; | 63 BLINK_PLATFORM_EXPORT double proxyStart() const; |
64 BLINK_EXPORT void setProxyStart(double); | 64 BLINK_PLATFORM_EXPORT void setProxyStart(double); |
65 | 65 |
66 BLINK_EXPORT double proxyEnd() const; | 66 BLINK_PLATFORM_EXPORT double proxyEnd() const; |
67 BLINK_EXPORT void setProxyEnd(double); | 67 BLINK_PLATFORM_EXPORT void setProxyEnd(double); |
68 | 68 |
69 BLINK_EXPORT double dnsStart() const; | 69 BLINK_PLATFORM_EXPORT double dnsStart() const; |
70 BLINK_EXPORT void setDNSStart(double); | 70 BLINK_PLATFORM_EXPORT void setDNSStart(double); |
71 | 71 |
72 BLINK_EXPORT double dnsEnd() const; | 72 BLINK_PLATFORM_EXPORT double dnsEnd() const; |
73 BLINK_EXPORT void setDNSEnd(double); | 73 BLINK_PLATFORM_EXPORT void setDNSEnd(double); |
74 | 74 |
75 BLINK_EXPORT double connectStart() const; | 75 BLINK_PLATFORM_EXPORT double connectStart() const; |
76 BLINK_EXPORT void setConnectStart(double); | 76 BLINK_PLATFORM_EXPORT void setConnectStart(double); |
77 | 77 |
78 BLINK_EXPORT double connectEnd() const; | 78 BLINK_PLATFORM_EXPORT double connectEnd() const; |
79 BLINK_EXPORT void setConnectEnd(double); | 79 BLINK_PLATFORM_EXPORT void setConnectEnd(double); |
80 | 80 |
81 BLINK_EXPORT double sendStart() const; | 81 BLINK_PLATFORM_EXPORT double sendStart() const; |
82 BLINK_EXPORT void setSendStart(double); | 82 BLINK_PLATFORM_EXPORT void setSendStart(double); |
83 | 83 |
84 BLINK_EXPORT double sendEnd() const; | 84 BLINK_PLATFORM_EXPORT double sendEnd() const; |
85 BLINK_EXPORT void setSendEnd(double); | 85 BLINK_PLATFORM_EXPORT void setSendEnd(double); |
86 | 86 |
87 BLINK_EXPORT double receiveHeadersEnd() const; | 87 BLINK_PLATFORM_EXPORT double receiveHeadersEnd() const; |
88 BLINK_EXPORT void setReceiveHeadersEnd(double); | 88 BLINK_PLATFORM_EXPORT void setReceiveHeadersEnd(double); |
89 | 89 |
90 BLINK_EXPORT double sslStart() const; | 90 BLINK_PLATFORM_EXPORT double sslStart() const; |
91 BLINK_EXPORT void setSSLStart(double); | 91 BLINK_PLATFORM_EXPORT void setSSLStart(double); |
92 | 92 |
93 BLINK_EXPORT double sslEnd() const; | 93 BLINK_PLATFORM_EXPORT double sslEnd() const; |
94 BLINK_EXPORT void setSSLEnd(double); | 94 BLINK_PLATFORM_EXPORT void setSSLEnd(double); |
95 | 95 |
96 #if BLINK_IMPLEMENTATION | 96 #if INSIDE_BLINK |
97 WebURLLoadTiming(const WTF::PassRefPtr<WebCore::ResourceLoadTiming>&); | 97 BLINK_PLATFORM_EXPORT WebURLLoadTiming(const WTF::PassRefPtr<WebCore::Resour
ceLoadTiming>&); |
98 WebURLLoadTiming& operator=(const WTF::PassRefPtr<WebCore::ResourceLoadTimin
g>&); | 98 BLINK_PLATFORM_EXPORT WebURLLoadTiming& operator=(const WTF::PassRefPtr<WebC
ore::ResourceLoadTiming>&); |
99 operator WTF::PassRefPtr<WebCore::ResourceLoadTiming>() const; | 99 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<WebCore::ResourceLoadTiming>(
) const; |
100 #endif | 100 #endif |
101 | 101 |
102 private: | 102 private: |
103 WebPrivatePtr<WebCore::ResourceLoadTiming> m_private; | 103 WebPrivatePtr<WebCore::ResourceLoadTiming> m_private; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace WebKit | 106 } // namespace WebKit |
107 | 107 |
108 #endif | 108 #endif |
OLD | NEW |