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

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

Issue 2315443003: Stop sending serialized SSLStatus to the renderer. (Closed)
Patch Set: self review fix and merge fix Created 4 years, 3 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 ResourceLoadTiming* resourceLoadTiming() const; 203 ResourceLoadTiming* resourceLoadTiming() const;
204 void setResourceLoadTiming(PassRefPtr<ResourceLoadTiming>); 204 void setResourceLoadTiming(PassRefPtr<ResourceLoadTiming>);
205 205
206 PassRefPtr<ResourceLoadInfo> resourceLoadInfo() const; 206 PassRefPtr<ResourceLoadInfo> resourceLoadInfo() const;
207 void setResourceLoadInfo(PassRefPtr<ResourceLoadInfo>); 207 void setResourceLoadInfo(PassRefPtr<ResourceLoadInfo>);
208 208
209 HTTPVersion httpVersion() const { return m_httpVersion; } 209 HTTPVersion httpVersion() const { return m_httpVersion; }
210 void setHTTPVersion(HTTPVersion version) { m_httpVersion = version; } 210 void setHTTPVersion(HTTPVersion version) { m_httpVersion = version; }
211 211
212 const CString& getSecurityInfo() const { return m_securityInfo; }
213 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; }
214
215 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors; } 212 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors; }
216 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj orCertificateErrors = hasMajorCertificateErrors; } 213 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj orCertificateErrors = hasMajorCertificateErrors; }
217 214
218 SecurityStyle getSecurityStyle() const { return m_securityStyle; } 215 SecurityStyle getSecurityStyle() const { return m_securityStyle; }
219 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; } 216 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; }
220 217
221 const SecurityDetails* getSecurityDetails() const { return &m_securityDetail s; } 218 const SecurityDetails* getSecurityDetails() const { return &m_securityDetail s; }
222 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, const String& subjectName, const Vector< String>& sanList, const String& issuer, time_t validFrom, time_t validTo, const Vector<AtomicString>& certificate, const SignedCertificateTimestampList& sctList ); 219 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, const String& subjectName, const Vector< String>& sanList, const String& issuer, time_t validFrom, time_t validTo, const Vector<AtomicString>& certificate, const SignedCertificateTimestampList& sctList );
223 220
224 long long appCacheID() const { return m_appCacheID; } 221 long long appCacheID() const { return m_appCacheID; }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 mutable bool m_haveParsedAgeHeader : 1; 329 mutable bool m_haveParsedAgeHeader : 1;
333 mutable bool m_haveParsedDateHeader : 1; 330 mutable bool m_haveParsedDateHeader : 1;
334 mutable bool m_haveParsedExpiresHeader : 1; 331 mutable bool m_haveParsedExpiresHeader : 1;
335 mutable bool m_haveParsedLastModifiedHeader : 1; 332 mutable bool m_haveParsedLastModifiedHeader : 1;
336 333
337 mutable double m_age; 334 mutable double m_age;
338 mutable double m_date; 335 mutable double m_date;
339 mutable double m_expires; 336 mutable double m_expires;
340 mutable double m_lastModified; 337 mutable double m_lastModified;
341 338
342 // An opaque value that contains some information regarding the security of
343 // the connection for this request, such as SSL connection info (empty
344 // string if not over HTTPS).
345 CString m_securityInfo;
346
347 // True if the resource was retrieved by the embedder in spite of 339 // True if the resource was retrieved by the embedder in spite of
348 // certificate errors. 340 // certificate errors.
349 bool m_hasMajorCertificateErrors; 341 bool m_hasMajorCertificateErrors;
350 342
351 // The security style of the resource. 343 // The security style of the resource.
352 // This only contains a valid value when the DevTools Network domain is 344 // This only contains a valid value when the DevTools Network domain is
353 // enabled. (Otherwise, it contains a default value of Unknown.) 345 // enabled. (Otherwise, it contains a default value of Unknown.)
354 SecurityStyle m_securityStyle; 346 SecurityStyle m_securityStyle;
355 347
356 // Security details of this request's connection. 348 // Security details of this request's connection.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 KURL m_url; 439 KURL m_url;
448 String m_mimeType; 440 String m_mimeType;
449 long long m_expectedContentLength; 441 long long m_expectedContentLength;
450 String m_textEncodingName; 442 String m_textEncodingName;
451 String m_suggestedFilename; 443 String m_suggestedFilename;
452 int m_httpStatusCode; 444 int m_httpStatusCode;
453 String m_httpStatusText; 445 String m_httpStatusText;
454 std::unique_ptr<CrossThreadHTTPHeaderMapData> m_httpHeaders; 446 std::unique_ptr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
455 time_t m_lastModifiedDate; 447 time_t m_lastModifiedDate;
456 RefPtr<ResourceLoadTiming> m_resourceLoadTiming; 448 RefPtr<ResourceLoadTiming> m_resourceLoadTiming;
457 CString m_securityInfo;
458 bool m_hasMajorCertificateErrors; 449 bool m_hasMajorCertificateErrors;
459 ResourceResponse::SecurityStyle m_securityStyle; 450 ResourceResponse::SecurityStyle m_securityStyle;
460 ResourceResponse::SecurityDetails m_securityDetails; 451 ResourceResponse::SecurityDetails m_securityDetails;
461 // This is |certificate| from SecurityDetails since that structure should 452 // This is |certificate| from SecurityDetails since that structure should
462 // use an AtomicString but this temporary structure is sent across threads. 453 // use an AtomicString but this temporary structure is sent across threads.
463 Vector<String> m_certificate; 454 Vector<String> m_certificate;
464 ResourceResponse::HTTPVersion m_httpVersion; 455 ResourceResponse::HTTPVersion m_httpVersion;
465 long long m_appCacheID; 456 long long m_appCacheID;
466 KURL m_appCacheManifestURL; 457 KURL m_appCacheManifestURL;
467 Vector<char> m_multipartBoundary; 458 Vector<char> m_multipartBoundary;
(...skipping 12 matching lines...) Expand all
480 unsigned short m_remotePort; 471 unsigned short m_remotePort;
481 long long m_encodedBodyLength; 472 long long m_encodedBodyLength;
482 long long m_decodedBodyLength; 473 long long m_decodedBodyLength;
483 String m_downloadedFilePath; 474 String m_downloadedFilePath;
484 RefPtr<BlobDataHandle> m_downloadedFileHandle; 475 RefPtr<BlobDataHandle> m_downloadedFileHandle;
485 }; 476 };
486 477
487 } // namespace blink 478 } // namespace blink
488 479
489 #endif // ResourceResponse_h 480 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698