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

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

Issue 2654663004: [Not for review] record detailed time breakdown of SW related requests.
Patch Set: add stream uma Created 3 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 148
149 void WebURLResponse::setHTTPLoadInfo(const WebHTTPLoadInfo& value) { 149 void WebURLResponse::setHTTPLoadInfo(const WebHTTPLoadInfo& value) {
150 m_resourceResponse->setResourceLoadInfo(value); 150 m_resourceResponse->setResourceLoadInfo(value);
151 } 151 }
152 152
153 void WebURLResponse::setResponseTime(long long responseTime) { 153 void WebURLResponse::setResponseTime(long long responseTime) {
154 m_resourceResponse->setResponseTime(static_cast<int64_t>(responseTime)); 154 m_resourceResponse->setResponseTime(static_cast<int64_t>(responseTime));
155 } 155 }
156 156
157 void WebURLResponse::setResponseStart(long long responseStart) {
158 m_resourceResponse->setResponseStart(static_cast<int64_t>(responseStart));
159 }
160
157 WebString WebURLResponse::mimeType() const { 161 WebString WebURLResponse::mimeType() const {
158 return m_resourceResponse->mimeType(); 162 return m_resourceResponse->mimeType();
159 } 163 }
160 164
161 void WebURLResponse::setMIMEType(const WebString& mimeType) { 165 void WebURLResponse::setMIMEType(const WebString& mimeType) {
162 m_resourceResponse->setMimeType(mimeType); 166 m_resourceResponse->setMimeType(mimeType);
163 } 167 }
164 168
165 long long WebURLResponse::expectedContentLength() const { 169 long long WebURLResponse::expectedContentLength() const {
166 return m_resourceResponse->expectedContentLength(); 170 return m_resourceResponse->expectedContentLength();
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); 469 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
466 } 470 }
467 471
468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { 472 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) {
469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); 473 m_resourceResponse->appendRedirectResponse(response.toResourceResponse());
470 } 474 }
471 475
472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} 476 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {}
473 477
474 } // namespace blink 478 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698