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

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

Issue 1589703002: Surface SCT (Signed Certificate Timestamp) counts in the Security panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address latest comments. Created 4 years, 10 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 enum SecurityStyle { 54 enum SecurityStyle {
55 SecurityStyleUnknown, 55 SecurityStyleUnknown,
56 SecurityStyleUnauthenticated, 56 SecurityStyleUnauthenticated,
57 SecurityStyleAuthenticationBroken, 57 SecurityStyleAuthenticationBroken,
58 SecurityStyleWarning, 58 SecurityStyleWarning,
59 SecurityStyleAuthenticated 59 SecurityStyleAuthenticated
60 }; 60 };
61 61
62 struct SecurityDetails { 62 struct SecurityDetails {
63 DISALLOW_NEW(); 63 DISALLOW_NEW();
64 SecurityDetails() : certID(0) {} 64 SecurityDetails()
65 : certID(0)
66 , numUnknownSCTs(0)
67 , numInvalidSCTs(0)
68 , numValidSCTs(0)
69 {
70 }
65 // All strings are human-readable values. 71 // All strings are human-readable values.
66 String protocol; 72 String protocol;
67 String keyExchange; 73 String keyExchange;
68 String cipher; 74 String cipher;
69 // mac is the empty string when the connection cipher suite does not 75 // mac is the empty string when the connection cipher suite does not
70 // have a separate MAC value (i.e. if the cipher suite is AEAD). 76 // have a separate MAC value (i.e. if the cipher suite is AEAD).
71 String mac; 77 String mac;
72 int certID; 78 int certID;
79 size_t numUnknownSCTs;
80 size_t numInvalidSCTs;
81 size_t numValidSCTs;
73 }; 82 };
74 83
75 class ExtraData : public RefCounted<ExtraData> { 84 class ExtraData : public RefCounted<ExtraData> {
76 public: 85 public:
77 virtual ~ExtraData() { } 86 virtual ~ExtraData() { }
78 }; 87 };
79 88
80 explicit ResourceResponse(CrossThreadResourceResponseData*); 89 explicit ResourceResponse(CrossThreadResourceResponseData*);
81 90
82 // Gets a copy of the data suitable for passing to another thread. 91 // Gets a copy of the data suitable for passing to another thread.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 const CString& getSecurityInfo() const { return m_securityInfo; } 169 const CString& getSecurityInfo() const { return m_securityInfo; }
161 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; } 170 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; }
162 171
163 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors; } 172 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors; }
164 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj orCertificateErrors = hasMajorCertificateErrors; } 173 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj orCertificateErrors = hasMajorCertificateErrors; }
165 174
166 SecurityStyle securityStyle() const { return m_securityStyle; } 175 SecurityStyle securityStyle() const { return m_securityStyle; }
167 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; } 176 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; }
168 177
169 const SecurityDetails* securityDetails() const { return &m_securityDetails; } 178 const SecurityDetails* securityDetails() const { return &m_securityDetails; }
170 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, int certId); 179 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, int certId, size_t numUnknownScts, size_ t numInvalidScts, size_t numValidScts);
171 180
172 long long appCacheID() const { return m_appCacheID; } 181 long long appCacheID() const { return m_appCacheID; }
173 void setAppCacheID(long long id) { m_appCacheID = id; } 182 void setAppCacheID(long long id) { m_appCacheID = id; }
174 183
175 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; } 184 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; }
176 void setAppCacheManifestURL(const KURL& url) { m_appCacheManifestURL = url; } 185 void setAppCacheManifestURL(const KURL& url) { m_appCacheManifestURL = url; }
177 186
178 bool wasFetchedViaSPDY() const { return m_wasFetchedViaSPDY; } 187 bool wasFetchedViaSPDY() const { return m_wasFetchedViaSPDY; }
179 void setWasFetchedViaSPDY(bool value) { m_wasFetchedViaSPDY = value; } 188 void setWasFetchedViaSPDY(bool value) { m_wasFetchedViaSPDY = value; }
180 189
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 int64_t m_responseTime; 391 int64_t m_responseTime;
383 String m_remoteIPAddress; 392 String m_remoteIPAddress;
384 unsigned short m_remotePort; 393 unsigned short m_remotePort;
385 String m_downloadedFilePath; 394 String m_downloadedFilePath;
386 RefPtr<BlobDataHandle> m_downloadedFileHandle; 395 RefPtr<BlobDataHandle> m_downloadedFileHandle;
387 }; 396 };
388 397
389 } // namespace blink 398 } // namespace blink
390 399
391 #endif // ResourceResponse_h 400 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698