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

Unified Diff: third_party/WebKit/public/platform/WebURLResponse.h

Issue 2932003002: Implement nextHopProtocol in PerformanceResourceTiming and PerformanceNavigationTiming. (Closed)
Patch Set: Make ConnectionInfoString() return AtomicString Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebURLResponse.h
diff --git a/third_party/WebKit/public/platform/WebURLResponse.h b/third_party/WebKit/public/platform/WebURLResponse.h
index a77d464ebc3776035637da044c6897c8fd8a4035..d00f6f11d8c058254b8ca3845110740f0202684e 100644
--- a/third_party/WebKit/public/platform/WebURLResponse.h
+++ b/third_party/WebKit/public/platform/WebURLResponse.h
@@ -31,13 +31,14 @@
#ifndef WebURLResponse_h
#define WebURLResponse_h
+#include <memory>
+#include "net/http/http_response_info.h"
#include "public/platform/WebCString.h"
#include "public/platform/WebCommon.h"
#include "public/platform/WebSecurityStyle.h"
#include "public/platform/WebString.h"
#include "public/platform/WebVector.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h"
-#include <memory>
namespace blink {
@@ -269,6 +270,16 @@ class WebURLResponse {
BLINK_PLATFORM_EXPORT unsigned short RemotePort() const;
BLINK_PLATFORM_EXPORT void SetRemotePort(unsigned short);
+ // ALPN negotiated protocol of the socket which fetched this resource.
+ BLINK_PLATFORM_EXPORT WebString AlpnNegotiatedProtocol() const;
+ BLINK_PLATFORM_EXPORT void SetAlpnNegotiatedProtocol(const WebString&);
+
+ // Information about the type of connection used to fetch this resource.
+ BLINK_PLATFORM_EXPORT net::HttpResponseInfo::ConnectionInfo ConnectionInfo()
+ const;
+ BLINK_PLATFORM_EXPORT void SetConnectionInfo(
+ net::HttpResponseInfo::ConnectionInfo);
+
// Original size of the response before decompression.
BLINK_PLATFORM_EXPORT void SetEncodedDataLength(long long);
« no previous file with comments | « third_party/WebKit/public/platform/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698