Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: Source/platform/exported/WebURLLoadTiming.cpp

Issue 1159663002: Refactoring timing info for ServiceWorker controlled requests [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/devtools/protocol.json ('k') | Source/platform/network/ResourceLoadTiming.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 double WebURLLoadTiming::connectEnd() const 114 double WebURLLoadTiming::connectEnd() const
115 { 115 {
116 return m_private->connectEnd(); 116 return m_private->connectEnd();
117 } 117 }
118 118
119 void WebURLLoadTiming::setConnectEnd(double end) 119 void WebURLLoadTiming::setConnectEnd(double end)
120 { 120 {
121 m_private->setConnectEnd(end); 121 m_private->setConnectEnd(end);
122 } 122 }
123 123
124 double WebURLLoadTiming::workerStart() const
125 {
126 return m_private->workerStart();
127 }
128
129 void WebURLLoadTiming::setWorkerStart(double start)
130 {
131 m_private->setWorkerStart(start);
132 }
133
124 double WebURLLoadTiming::serviceWorkerFetchStart() const 134 double WebURLLoadTiming::serviceWorkerFetchStart() const
125 { 135 {
126 return m_private->serviceWorkerFetchStart(); 136 return m_private->workerStart();
127 } 137 }
128 138
129 void WebURLLoadTiming::setServiceWorkerFetchStart(double start) 139 void WebURLLoadTiming::setServiceWorkerFetchStart(double start)
130 { 140 {
131 m_private->setServiceWorkerFetchStart(start); 141 m_private->setWorkerStart(start);
132 } 142 }
133 143
134 double WebURLLoadTiming::serviceWorkerFetchReady() const 144 double WebURLLoadTiming::serviceWorkerFetchReady() const
135 { 145 {
136 return m_private->serviceWorkerFetchReady(); 146 return m_private->sendStart();
137 } 147 }
138 148
139 void WebURLLoadTiming::setServiceWorkerFetchReady(double time) 149 void WebURLLoadTiming::setServiceWorkerFetchReady(double time)
140 { 150 {
141 m_private->setServiceWorkerFetchReady(time);
142 } 151 }
143 152
144 double WebURLLoadTiming::serviceWorkerFetchEnd() const 153 double WebURLLoadTiming::serviceWorkerFetchEnd() const
145 { 154 {
146 return m_private->serviceWorkerFetchEnd(); 155 return m_private->sendEnd();
147 } 156 }
148 157
149 void WebURLLoadTiming::setServiceWorkerFetchEnd(double end) 158 void WebURLLoadTiming::setServiceWorkerFetchEnd(double end)
150 { 159 {
151 m_private->setServiceWorkerFetchEnd(end);
152 } 160 }
153 161
154 double WebURLLoadTiming::sendStart() const 162 double WebURLLoadTiming::sendStart() const
155 { 163 {
156 return m_private->sendStart(); 164 return m_private->sendStart();
157 } 165 }
158 166
159 void WebURLLoadTiming::setSendStart(double start) 167 void WebURLLoadTiming::setSendStart(double start)
160 { 168 {
161 m_private->setSendStart(start); 169 m_private->setSendStart(start);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 m_private = value; 219 m_private = value;
212 return *this; 220 return *this;
213 } 221 }
214 222
215 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const 223 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const
216 { 224 {
217 return m_private.get(); 225 return m_private.get();
218 } 226 }
219 227
220 } // namespace blink 228 } // namespace blink
OLDNEW
« no previous file with comments | « Source/devtools/protocol.json ('k') | Source/platform/network/ResourceLoadTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698