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

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

Issue 938643002: Preserve original int64 time stamp in ResourceResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use long long Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 double WebURLResponse::responseTime() const 162 double WebURLResponse::responseTime() const
163 { 163 {
164 return m_private->m_resourceResponse->responseTime(); 164 return m_private->m_resourceResponse->responseTime();
165 } 165 }
166 166
167 void WebURLResponse::setResponseTime(double responseTime) 167 void WebURLResponse::setResponseTime(double responseTime)
168 { 168 {
169 m_private->m_resourceResponse->setResponseTime(responseTime); 169 m_private->m_resourceResponse->setResponseTime(responseTime);
170 } 170 }
171 171
172 long long WebURLResponse::originalResponseTime() const
173 {
174 return m_private->m_resourceResponse->originalResponseTime();
175 }
176
177 void WebURLResponse::setOriginalResponseTime(long long originalResponseTime)
178 {
179 m_private->m_resourceResponse->setOriginalResponseTime(originalResponseTime) ;
180 }
181
172 WebString WebURLResponse::mimeType() const 182 WebString WebURLResponse::mimeType() const
173 { 183 {
174 return m_private->m_resourceResponse->mimeType(); 184 return m_private->m_resourceResponse->mimeType();
175 } 185 }
176 186
177 void WebURLResponse::setMIMEType(const WebString& mimeType) 187 void WebURLResponse::setMIMEType(const WebString& mimeType)
178 { 188 {
179 m_private->m_resourceResponse->setMimeType(mimeType); 189 m_private->m_resourceResponse->setMimeType(mimeType);
180 } 190 }
181 191
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // Subclasses may call this directly so a self-assignment check is needed 484 // Subclasses may call this directly so a self-assignment check is needed
475 // here as well as in the public assign method. 485 // here as well as in the public assign method.
476 if (m_private == p) 486 if (m_private == p)
477 return; 487 return;
478 if (m_private) 488 if (m_private)
479 m_private->dispose(); 489 m_private->dispose();
480 m_private = p; 490 m_private = p;
481 } 491 }
482 492
483 } // namespace blink 493 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/platform/network/ResourceResponse.h » ('j') | public/platform/WebURLResponse.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698