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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js

Issue 2603593002: Expose per-request referrer policy in devtools (Closed)
Patch Set: updates Created 3 years, 11 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 /** 189 /**
190 * @param {!SDK.NetworkRequest} networkRequest 190 * @param {!SDK.NetworkRequest} networkRequest
191 * @param {!Protocol.Network.Request} request 191 * @param {!Protocol.Network.Request} request
192 */ 192 */
193 _updateNetworkRequestWithRequest(networkRequest, request) { 193 _updateNetworkRequestWithRequest(networkRequest, request) {
194 networkRequest.requestMethod = request.method; 194 networkRequest.requestMethod = request.method;
195 networkRequest.setRequestHeaders(this._headersMapToHeadersArray(request.head ers)); 195 networkRequest.setRequestHeaders(this._headersMapToHeadersArray(request.head ers));
196 networkRequest.requestFormData = request.postData; 196 networkRequest.requestFormData = request.postData;
197 networkRequest.setInitialPriority(request.initialPriority); 197 networkRequest.setInitialPriority(request.initialPriority);
198 networkRequest.mixedContentType = request.mixedContentType || Protocol.Netwo rk.RequestMixedContentType.None; 198 networkRequest.mixedContentType = request.mixedContentType || Protocol.Netwo rk.RequestMixedContentType.None;
199 networkRequest.setReferrerPolicy(request.referrerPolicy);
199 } 200 }
200 201
201 /** 202 /**
202 * @param {!SDK.NetworkRequest} networkRequest 203 * @param {!SDK.NetworkRequest} networkRequest
203 * @param {!Protocol.Network.Response=} response 204 * @param {!Protocol.Network.Response=} response
204 */ 205 */
205 _updateNetworkRequestWithResponse(networkRequest, response) { 206 _updateNetworkRequestWithResponse(networkRequest, response) {
206 if (response.url && networkRequest.url !== response.url) 207 if (response.url && networkRequest.url !== response.url)
207 networkRequest.url = response.url; 208 networkRequest.url = response.url;
208 networkRequest.mimeType = response.mimeType; 209 networkRequest.mimeType = response.mimeType;
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 SDK.MultitargetNetworkManager.Events = { 895 SDK.MultitargetNetworkManager.Events = {
895 ConditionsChanged: Symbol('ConditionsChanged'), 896 ConditionsChanged: Symbol('ConditionsChanged'),
896 UserAgentChanged: Symbol('UserAgentChanged') 897 UserAgentChanged: Symbol('UserAgentChanged')
897 }; 898 };
898 899
899 900
900 /** 901 /**
901 * @type {!SDK.MultitargetNetworkManager} 902 * @type {!SDK.MultitargetNetworkManager}
902 */ 903 */
903 SDK.multitargetNetworkManager; 904 SDK.multitargetNetworkManager;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698