OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | |
3 * | |
4 * Redistribution and use in source and binary forms, with or without | |
5 * modification, are permitted provided that the following conditions are | |
6 * met: | |
7 * | |
8 * * Redistributions of source code must retain the above copyright | |
9 * notice, this list of conditions and the following disclaimer. | |
10 * * Redistributions in binary form must reproduce the above | |
11 * copyright notice, this list of conditions and the following disclaimer | |
12 * in the documentation and/or other materials provided with the | |
13 * distribution. | |
14 * * Neither the name of Google Inc. nor the names of its | |
15 * contributors may be used to endorse or promote products derived from | |
16 * this software without specific prior written permission. | |
17 * | |
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
29 */ | |
30 | |
31 #include "sky/engine/public/platform/WebURLLoadTiming.h" | |
32 | |
33 #include "sky/engine/platform/network/ResourceLoadTiming.h" | |
34 #include "sky/engine/public/platform/WebString.h" | |
35 | |
36 namespace blink { | |
37 | |
38 void WebURLLoadTiming::initialize() | |
39 { | |
40 m_private = ResourceLoadTiming::create(); | |
41 } | |
42 | |
43 void WebURLLoadTiming::reset() | |
44 { | |
45 m_private.reset(); | |
46 } | |
47 | |
48 void WebURLLoadTiming::assign(const WebURLLoadTiming& other) | |
49 { | |
50 m_private = other.m_private; | |
51 } | |
52 | |
53 double WebURLLoadTiming::requestTime() const | |
54 { | |
55 return m_private->requestTime; | |
56 } | |
57 | |
58 void WebURLLoadTiming::setRequestTime(double time) | |
59 { | |
60 m_private->requestTime = time; | |
61 } | |
62 | |
63 double WebURLLoadTiming::proxyStart() const | |
64 { | |
65 return m_private->proxyStart; | |
66 } | |
67 | |
68 void WebURLLoadTiming::setProxyStart(double start) | |
69 { | |
70 m_private->proxyStart = start; | |
71 } | |
72 | |
73 double WebURLLoadTiming::proxyEnd() const | |
74 { | |
75 return m_private->proxyEnd; | |
76 } | |
77 | |
78 void WebURLLoadTiming::setProxyEnd(double end) | |
79 { | |
80 m_private->proxyEnd = end; | |
81 } | |
82 | |
83 double WebURLLoadTiming::dnsStart() const | |
84 { | |
85 return m_private->dnsStart; | |
86 } | |
87 | |
88 void WebURLLoadTiming::setDNSStart(double start) | |
89 { | |
90 m_private->dnsStart = start; | |
91 } | |
92 | |
93 double WebURLLoadTiming::dnsEnd() const | |
94 { | |
95 return m_private->dnsEnd; | |
96 } | |
97 | |
98 void WebURLLoadTiming::setDNSEnd(double end) | |
99 { | |
100 m_private->dnsEnd = end; | |
101 } | |
102 | |
103 double WebURLLoadTiming::connectStart() const | |
104 { | |
105 return m_private->connectStart; | |
106 } | |
107 | |
108 void WebURLLoadTiming::setConnectStart(double start) | |
109 { | |
110 m_private->connectStart = start; | |
111 } | |
112 | |
113 double WebURLLoadTiming::connectEnd() const | |
114 { | |
115 return m_private->connectEnd; | |
116 } | |
117 | |
118 void WebURLLoadTiming::setConnectEnd(double end) | |
119 { | |
120 m_private->connectEnd = end; | |
121 } | |
122 | |
123 double WebURLLoadTiming::sendStart() const | |
124 { | |
125 return m_private->sendStart; | |
126 } | |
127 | |
128 void WebURLLoadTiming::setSendStart(double start) | |
129 { | |
130 m_private->sendStart = start; | |
131 } | |
132 | |
133 double WebURLLoadTiming::sendEnd() const | |
134 { | |
135 return m_private->sendEnd; | |
136 } | |
137 | |
138 void WebURLLoadTiming::setSendEnd(double end) | |
139 { | |
140 m_private->sendEnd = end; | |
141 } | |
142 | |
143 double WebURLLoadTiming::receiveHeadersEnd() const | |
144 { | |
145 return m_private->receiveHeadersEnd; | |
146 } | |
147 | |
148 void WebURLLoadTiming::setReceiveHeadersEnd(double end) | |
149 { | |
150 m_private->receiveHeadersEnd = end; | |
151 } | |
152 | |
153 double WebURLLoadTiming::sslStart() const | |
154 { | |
155 return m_private->sslStart; | |
156 } | |
157 | |
158 void WebURLLoadTiming::setSSLStart(double start) | |
159 { | |
160 m_private->sslStart = start; | |
161 } | |
162 | |
163 double WebURLLoadTiming::sslEnd() const | |
164 { | |
165 return m_private->sslEnd; | |
166 } | |
167 | |
168 void WebURLLoadTiming::setSSLEnd(double end) | |
169 { | |
170 m_private->sslEnd = end; | |
171 } | |
172 | |
173 WebURLLoadTiming::WebURLLoadTiming(const PassRefPtr<ResourceLoadTiming>& value) | |
174 : m_private(value) | |
175 { | |
176 } | |
177 | |
178 WebURLLoadTiming& WebURLLoadTiming::operator=(const PassRefPtr<ResourceLoadTimin
g>& value) | |
179 { | |
180 m_private = value; | |
181 return *this; | |
182 } | |
183 | |
184 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const | |
185 { | |
186 return m_private.get(); | |
187 } | |
188 | |
189 } // namespace blink | |
OLD | NEW |