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

Unified Diff: extensions/browser/api/web_request/web_request_api_constants.cc

Issue 2156763003: Extend the webRequest.onCompleted event details object with TLS/SSL information Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Consistently use key constants for dict fields and simplify validation error reporting Created 3 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/web_request/web_request_api_constants.cc
diff --git a/extensions/browser/api/web_request/web_request_api_constants.cc b/extensions/browser/api/web_request/web_request_api_constants.cc
index 7b464eef7b7f545c3b0da54d2828304587365728..511cc63904b8a7c789354bf970c7c7f4cac729f8 100644
--- a/extensions/browser/api/web_request/web_request_api_constants.cc
+++ b/extensions/browser/api/web_request/web_request_api_constants.cc
@@ -44,6 +44,32 @@ const char kAuthCredentialsKey[] = "authCredentials";
const char kUsernameKey[] = "username";
const char kPasswordKey[] = "password";
+const char kSSLInfoKey[] = "sslInfo";
+const char kCertificateValidKey[] = "valid";
+const char kCertificateIssuedByKnownRootKey[] = "issuedByKnownRoot";
Ryan Sleevi 2017/01/31 21:37:56 This should not be exposed
+const char kEVCertificateKey[] = "extendedValidation";
+const char kBuiltChainKey[] = "builtChain";
+const char kSentChainKey[] = "sentChain";
+const char kSSLVersionKey[] = "sslVersion";
+const char kCipherSuiteKey[] = "cipherSuite";
+const char kCommonNameKey[] = "commonName";
+const char kLocalityNameKey[] = "localityName";
+const char kStateOrProvinceNameKey[] = "stateOrProvinceName";
+const char kCountryNameKey[] = "countryName";
+const char kStreetAddressesKey[] = "streetAddresses";
+const char kOrganizationNamesKey[] = "organizationNames";
+const char kOrganizationUnitNamesKey[] = "organizationUnitNames";
+const char kSerialNumberKey[] = "serialNumber";
+const char kChainKey[] = "chain";
+const char kSubjectKey[] = "subject";
+const char kIssuerKey[] = "issuer";
+const char kDNSNamesKey[] = "dnsNames";
+const char kIPAddressesKey[] = "ipAddresses";
+const char kExpiredKey[] = "expired";
+const char kNotBeforeKey[] = "notBefore";
+const char kNotAfterKey[] = "notAfter";
+const char kRawKey[] = "raw";
+
const char kOnBeforeRedirectEvent[] = "webRequest.onBeforeRedirect";
const char kOnBeforeSendHeadersEvent[] = "webRequest.onBeforeSendHeaders";
const char kOnCompletedEvent[] = "webRequest.onCompleted";

Powered by Google App Engine
This is Rietveld 408576698