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

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 comments by rsleevi@ and pfeldman@. Created 4 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) 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 , certIsValidEV(false)
67 , numUnknownSCTs(0)
68 , numInvalidSCTs(0)
69 , numValidSCTs(0)
70 {
71 }
65 // All strings are human-readable values. 72 // All strings are human-readable values.
66 String protocol; 73 String protocol;
67 String keyExchange; 74 String keyExchange;
68 String cipher; 75 String cipher;
69 // mac is the empty string when the connection cipher suite does not 76 // 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). 77 // have a separate MAC value (i.e. if the cipher suite is AEAD).
71 String mac; 78 String mac;
72 int certID; 79 int certID;
80 bool certIsValidEV;
81 size_t numUnknownSCTs;
82 size_t numInvalidSCTs;
83 size_t numValidSCTs;
73 }; 84 };
74 85
75 class ExtraData : public RefCounted<ExtraData> { 86 class ExtraData : public RefCounted<ExtraData> {
76 public: 87 public:
77 virtual ~ExtraData() { } 88 virtual ~ExtraData() { }
78 }; 89 };
79 90
80 explicit ResourceResponse(CrossThreadResourceResponseData*); 91 explicit ResourceResponse(CrossThreadResourceResponseData*);
81 92
82 // Gets a copy of the data suitable for passing to another thread. 93 // 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; } 171 const CString& getSecurityInfo() const { return m_securityInfo; }
161 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; } 172 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; }
162 173
163 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors; } 174 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors; }
164 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj orCertificateErrors = hasMajorCertificateErrors; } 175 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj orCertificateErrors = hasMajorCertificateErrors; }
165 176
166 SecurityStyle securityStyle() const { return m_securityStyle; } 177 SecurityStyle securityStyle() const { return m_securityStyle; }
167 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; } 178 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; }
168 179
169 const SecurityDetails* securityDetails() const { return &m_securityDetails; } 180 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); 181 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, int certId, bool certIsValidEV, size_t n umUnknownScts, size_t numInvalidScts, size_t numValidScts);
171 182
172 long long appCacheID() const { return m_appCacheID; } 183 long long appCacheID() const { return m_appCacheID; }
173 void setAppCacheID(long long id) { m_appCacheID = id; } 184 void setAppCacheID(long long id) { m_appCacheID = id; }
174 185
175 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; } 186 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; }
176 void setAppCacheManifestURL(const KURL& url) { m_appCacheManifestURL = url; } 187 void setAppCacheManifestURL(const KURL& url) { m_appCacheManifestURL = url; }
177 188
178 bool wasFetchedViaSPDY() const { return m_wasFetchedViaSPDY; } 189 bool wasFetchedViaSPDY() const { return m_wasFetchedViaSPDY; }
179 void setWasFetchedViaSPDY(bool value) { m_wasFetchedViaSPDY = value; } 190 void setWasFetchedViaSPDY(bool value) { m_wasFetchedViaSPDY = value; }
180 191
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 int64_t m_responseTime; 393 int64_t m_responseTime;
383 String m_remoteIPAddress; 394 String m_remoteIPAddress;
384 unsigned short m_remotePort; 395 unsigned short m_remotePort;
385 String m_downloadedFilePath; 396 String m_downloadedFilePath;
386 RefPtr<BlobDataHandle> m_downloadedFileHandle; 397 RefPtr<BlobDataHandle> m_downloadedFileHandle;
387 }; 398 };
388 399
389 } // namespace blink 400 } // namespace blink
390 401
391 #endif // ResourceResponse_h 402 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698