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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
index 6f8ebed1968055259cff3564f319fb1e41fb6ecb..929b7fae2ced74ec5e36fc6a6f41f5692be2b9a6 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -151,6 +151,9 @@ WebInspector.NetworkRequest.prototype = {
return this._requestId;
},
+ /**
+ * @param {!NetworkAgent.RequestId} requestId
+ */
set requestId(requestId)
{
this._requestId = requestId;
@@ -164,6 +167,9 @@ WebInspector.NetworkRequest.prototype = {
return this._url;
},
+ /**
+ * @param {string} x
+ */
set url(x)
{
if (this._url === x)
@@ -300,6 +306,9 @@ WebInspector.NetworkRequest.prototype = {
return this._responseReceivedTime || -1;
},
+ /**
+ * @param {number} x
+ */
set responseReceivedTime(x)
{
this._responseReceivedTime = x;
@@ -313,6 +322,9 @@ WebInspector.NetworkRequest.prototype = {
return this._endTime || -1;
},
+ /**
+ * @param {number} x
+ */
set endTime(x)
{
if (this.timing && this.timing.requestTime) {
@@ -355,6 +367,9 @@ WebInspector.NetworkRequest.prototype = {
return this._resourceSize || 0;
},
+ /**
+ * @param {number} x
+ */
set resourceSize(x)
{
this._resourceSize = x;
@@ -392,6 +407,9 @@ WebInspector.NetworkRequest.prototype = {
return this._finished;
},
+ /**
+ * @param {boolean} x
+ */
set finished(x)
{
if (this._finished === x)
@@ -414,6 +432,9 @@ WebInspector.NetworkRequest.prototype = {
return this._failed;
},
+ /**
+ * @param {boolean} x
+ */
set failed(x)
{
this._failed = x;
@@ -427,6 +448,9 @@ WebInspector.NetworkRequest.prototype = {
return this._canceled;
},
+ /**
+ * @param {boolean} x
+ */
set canceled(x)
{
this._canceled = x;
@@ -491,6 +515,9 @@ WebInspector.NetworkRequest.prototype = {
return this._fetchedViaServiceWorker;
},
+ /**
+ * @param {boolean} x
+ */
set fetchedViaServiceWorker(x)
{
this._fetchedViaServiceWorker = x;
@@ -504,6 +531,9 @@ WebInspector.NetworkRequest.prototype = {
return this._timing;
},
+ /**
+ * @param {!NetworkAgent.ResourceTiming|undefined} x
+ */
set timing(x)
{
if (x && !this._fromMemoryCache) {
@@ -525,6 +555,9 @@ WebInspector.NetworkRequest.prototype = {
return this._mimeType;
},
+ /**
+ * @param {string} x
+ */
set mimeType(x)
{
this._mimeType = x;
@@ -640,6 +673,9 @@ WebInspector.NetworkRequest.prototype = {
return this._redirectSource;
},
+ /**
+ * @param {?WebInspector.NetworkRequest} x
+ */
set redirectSource(x)
{
this._redirectSource = x;
@@ -710,6 +746,9 @@ WebInspector.NetworkRequest.prototype = {
return this._requestFormData;
},
+ /**
+ * @param {string|undefined} x
+ */
set requestFormData(x)
{
this._requestFormData = x;
@@ -737,6 +776,9 @@ WebInspector.NetworkRequest.prototype = {
return this._responseHeaders || [];
},
+ /**
+ * @param {!Array.<!WebInspector.NetworkRequest.NameValue>} x
+ */
set responseHeaders(x)
{
this._responseHeaders = x;
@@ -756,6 +798,9 @@ WebInspector.NetworkRequest.prototype = {
return this._responseHeadersText;
},
+ /**
+ * @param {string} x
+ */
set responseHeadersText(x)
{
this._responseHeadersText = x;

Powered by Google App Engine
This is Rietveld 408576698