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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceResponse.h

Issue 1738553002: [ABANDONED] Move multipart/x-mixed-replace related code to ImageResource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup-2
Patch Set: Created 4 years, 9 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) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir edByServiceWorker; } 208 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir edByServiceWorker; }
209 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir edByServiceWorker = value; } 209 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir edByServiceWorker = value; }
210 210
211 WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_se rviceWorkerResponseType; } 211 WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_se rviceWorkerResponseType; }
212 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se rviceWorkerResponseType = value; } 212 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se rviceWorkerResponseType = value; }
213 213
214 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer viceWorker; } 214 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer viceWorker; }
215 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi ceWorker = url; } 215 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi ceWorker = url; }
216 216
217 bool isMultipartPayload() const { return m_isMultipartPayload; }
218 void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; }
219
220 const Vector<char>& multipartBoundary() const { return m_multipartBoundary; } 217 const Vector<char>& multipartBoundary() const { return m_multipartBoundary; }
221 void setMultipartBoundary(const char* bytes, size_t size) 218 void setMultipartBoundary(const char* bytes, size_t size)
222 { 219 {
223 m_multipartBoundary.clear(); 220 m_multipartBoundary.clear();
224 m_multipartBoundary.append(bytes, size); 221 m_multipartBoundary.append(bytes, size);
225 } 222 }
226 223
227 int64_t responseTime() const { return m_responseTime; } 224 int64_t responseTime() const { return m_responseTime; }
228 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } 225 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; }
229 226
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // the response was not retrieved from an appcache. 305 // the response was not retrieved from an appcache.
309 long long m_appCacheID; 306 long long m_appCacheID;
310 307
311 // The manifest url of the appcache this response was retrieved from, if any . 308 // The manifest url of the appcache this response was retrieved from, if any .
312 // Note: only valid for main resource responses. 309 // Note: only valid for main resource responses.
313 KURL m_appCacheManifestURL; 310 KURL m_appCacheManifestURL;
314 311
315 // The multipart boundary of this response. 312 // The multipart boundary of this response.
316 Vector<char> m_multipartBoundary; 313 Vector<char> m_multipartBoundary;
317 314
318 // Set to true if this is part of a multipart response.
319 bool m_isMultipartPayload;
320
321 // Was the resource fetched over SPDY. See http://dev.chromium.org/spdy 315 // Was the resource fetched over SPDY. See http://dev.chromium.org/spdy
322 bool m_wasFetchedViaSPDY; 316 bool m_wasFetchedViaSPDY;
323 317
324 // Was the resource fetched over a channel which used TLS/Next-Protocol-Nego tiation (also SPDY related). 318 // Was the resource fetched over a channel which used TLS/Next-Protocol-Nego tiation (also SPDY related).
325 bool m_wasNpnNegotiated; 319 bool m_wasNpnNegotiated;
326 320
327 // Was the resource fetched over a channel which specified "Alternate-Protoc ol" 321 // Was the resource fetched over a channel which specified "Alternate-Protoc ol"
328 // (e.g.: Alternate-Protocol: 443:npn-spdy/1). 322 // (e.g.: Alternate-Protocol: 443:npn-spdy/1).
329 bool m_wasAlternateProtocolAvailable; 323 bool m_wasAlternateProtocolAvailable;
330 324
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 time_t m_lastModifiedDate; 377 time_t m_lastModifiedDate;
384 RefPtr<ResourceLoadTiming> m_resourceLoadTiming; 378 RefPtr<ResourceLoadTiming> m_resourceLoadTiming;
385 CString m_securityInfo; 379 CString m_securityInfo;
386 bool m_hasMajorCertificateErrors; 380 bool m_hasMajorCertificateErrors;
387 ResourceResponse::SecurityStyle m_securityStyle; 381 ResourceResponse::SecurityStyle m_securityStyle;
388 ResourceResponse::SecurityDetails m_securityDetails; 382 ResourceResponse::SecurityDetails m_securityDetails;
389 ResourceResponse::HTTPVersion m_httpVersion; 383 ResourceResponse::HTTPVersion m_httpVersion;
390 long long m_appCacheID; 384 long long m_appCacheID;
391 KURL m_appCacheManifestURL; 385 KURL m_appCacheManifestURL;
392 Vector<char> m_multipartBoundary; 386 Vector<char> m_multipartBoundary;
393 bool m_isMultipartPayload;
394 bool m_wasFetchedViaSPDY; 387 bool m_wasFetchedViaSPDY;
395 bool m_wasNpnNegotiated; 388 bool m_wasNpnNegotiated;
396 bool m_wasAlternateProtocolAvailable; 389 bool m_wasAlternateProtocolAvailable;
397 bool m_wasFetchedViaProxy; 390 bool m_wasFetchedViaProxy;
398 bool m_wasFetchedViaServiceWorker; 391 bool m_wasFetchedViaServiceWorker;
399 bool m_wasFallbackRequiredByServiceWorker; 392 bool m_wasFallbackRequiredByServiceWorker;
400 WebServiceWorkerResponseType m_serviceWorkerResponseType; 393 WebServiceWorkerResponseType m_serviceWorkerResponseType;
401 KURL m_originalURLViaServiceWorker; 394 KURL m_originalURLViaServiceWorker;
402 int64_t m_responseTime; 395 int64_t m_responseTime;
403 String m_remoteIPAddress; 396 String m_remoteIPAddress;
404 unsigned short m_remotePort; 397 unsigned short m_remotePort;
405 String m_downloadedFilePath; 398 String m_downloadedFilePath;
406 RefPtr<BlobDataHandle> m_downloadedFileHandle; 399 RefPtr<BlobDataHandle> m_downloadedFileHandle;
407 }; 400 };
408 401
409 } // namespace blink 402 } // namespace blink
410 403
411 #endif // ResourceResponse_h 404 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698