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

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

Issue 2429063002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming.
Patch Set: included changes for navigation timing Created 3 years, 8 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 if (!data) 366 if (!data)
367 return 0; 367 return 0;
368 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); 368 return static_cast<ExtraDataContainer*>(data.get())->getExtraData();
369 } 369 }
370 370
371 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) { 371 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) {
372 if (extraData != getExtraData()) 372 if (extraData != getExtraData())
373 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); 373 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
374 } 374 }
375 375
376 WebString WebURLResponse::alpnNegotiatedProtocol() const {
377 return m_resourceResponse->alpnNegotiatedProtocol();
378 }
379
380 void WebURLResponse::setALPNNegotiatedProtocol(
381 const WebString& alpnNegotiatedProtocol) {
382 m_resourceResponse->setALPNNegotiatedProtocol(alpnNegotiatedProtocol);
383 }
384
385 WebString WebURLResponse::connectionInfo() const {
386 return m_resourceResponse->connectionInfo();
387 }
388
389 void WebURLResponse::setConnectionInfo(const WebString& connectionInfo) {
390 m_resourceResponse->setConnectionInfo(connectionInfo);
391 }
392
376 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { 393 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) {
377 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); 394 m_resourceResponse->appendRedirectResponse(response.toResourceResponse());
378 } 395 }
379 396
380 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} 397 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {}
381 398
382 } // namespace blink 399 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698