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

Side by Side Diff: third_party/WebKit/public/platform/WebURLResponse.h

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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // This indicates the location of a downloaded response if the 258 // This indicates the location of a downloaded response if the
259 // WebURLRequest had the downloadToFile flag set to true. This file path 259 // WebURLRequest had the downloadToFile flag set to true. This file path
260 // remains valid for the lifetime of the WebURLLoader used to create it. 260 // remains valid for the lifetime of the WebURLLoader used to create it.
261 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; 261 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const;
262 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); 262 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&);
263 263
264 // Remote IP address of the socket which fetched this resource. 264 // Remote IP address of the socket which fetched this resource.
265 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; 265 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const;
266 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); 266 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&);
267 267
268 // ALPN negotiated protocol of the socket which fetched this resource.
269 BLINK_PLATFORM_EXPORT WebString alpnNegotiatedProtocol() const;
jochen (gone - plz use gerrit) 2017/04/18 11:37:58 it seems that these aren't strings, but registry c
panicker 2017/04/18 17:01:06 Ditto for this (see other comment).
panicker 2017/04/18 21:43:50 While we could use net::HttpResponseInfo::Connecti
270 BLINK_PLATFORM_EXPORT void setALPNNegotiatedProtocol(const WebString&);
271
272 // Information about the type of connection used to fetch this resource.
273 BLINK_PLATFORM_EXPORT WebString connectionInfo() const;
jochen (gone - plz use gerrit) 2017/04/18 11:37:58 same here, is that a free-form value, or really so
panicker 2017/04/18 17:01:06 There's a lot of internal and deprecated values he
jochen (gone - plz use gerrit) 2017/04/18 18:21:11 The interface is not really public - it used to be
panicker 2017/04/18 21:43:50 I'm open to suggestions: while we could propagate
jochen (gone - plz use gerrit) 2017/04/19 15:01:25 platform/loader already depends on net/ and public
kinuko 2017/04/20 03:37:08 Yes, it's fine to make platform/loader code depend
274 BLINK_PLATFORM_EXPORT void setConnectionInfo(const WebString&);
275
268 // Remote port number of the socket which fetched this resource. 276 // Remote port number of the socket which fetched this resource.
269 BLINK_PLATFORM_EXPORT unsigned short remotePort() const; 277 BLINK_PLATFORM_EXPORT unsigned short remotePort() const;
270 BLINK_PLATFORM_EXPORT void setRemotePort(unsigned short); 278 BLINK_PLATFORM_EXPORT void setRemotePort(unsigned short);
271 279
272 // Original size of the response before decompression. 280 // Original size of the response before decompression.
273 BLINK_PLATFORM_EXPORT void setEncodedDataLength(long long); 281 BLINK_PLATFORM_EXPORT void setEncodedDataLength(long long);
274 282
275 // Original size of the response body before decompression. 283 // Original size of the response body before decompression.
276 BLINK_PLATFORM_EXPORT void addToEncodedBodyLength(long long); 284 BLINK_PLATFORM_EXPORT void addToEncodedBodyLength(long long);
277 285
(...skipping 26 matching lines...) Expand all
304 // instance it contains. 312 // instance it contains.
305 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; 313 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse;
306 314
307 // Should never be null. 315 // Should never be null.
308 ResourceResponse* m_resourceResponse; 316 ResourceResponse* m_resourceResponse;
309 }; 317 };
310 318
311 } // namespace blink 319 } // namespace blink
312 320
313 #endif 321 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698