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

Side by Side 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, 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/api/web_request/web_request_api_constants.h" 5 #include "extensions/browser/api/web_request/web_request_api_constants.h"
6 6
7 namespace extension_web_request_api_constants { 7 namespace extension_web_request_api_constants {
8 8
9 const char kChallengerKey[] = "challenger"; 9 const char kChallengerKey[] = "challenger";
10 const char kErrorKey[] = "error"; 10 const char kErrorKey[] = "error";
(...skipping 26 matching lines...) Expand all
37 const char kHeaderBinaryValueKey[] = "binaryValue"; 37 const char kHeaderBinaryValueKey[] = "binaryValue";
38 const char kIsProxyKey[] = "isProxy"; 38 const char kIsProxyKey[] = "isProxy";
39 const char kMessageKey[] = "message"; 39 const char kMessageKey[] = "message";
40 const char kSchemeKey[] = "scheme"; 40 const char kSchemeKey[] = "scheme";
41 const char kStageKey[] = "stage"; 41 const char kStageKey[] = "stage";
42 const char kRealmKey[] = "realm"; 42 const char kRealmKey[] = "realm";
43 const char kAuthCredentialsKey[] = "authCredentials"; 43 const char kAuthCredentialsKey[] = "authCredentials";
44 const char kUsernameKey[] = "username"; 44 const char kUsernameKey[] = "username";
45 const char kPasswordKey[] = "password"; 45 const char kPasswordKey[] = "password";
46 46
47 const char kSSLInfoKey[] = "sslInfo";
48 const char kCertificateValidKey[] = "valid";
49 const char kCertificateIssuedByKnownRootKey[] = "issuedByKnownRoot";
Ryan Sleevi 2017/01/31 21:37:56 This should not be exposed
50 const char kEVCertificateKey[] = "extendedValidation";
51 const char kBuiltChainKey[] = "builtChain";
52 const char kSentChainKey[] = "sentChain";
53 const char kSSLVersionKey[] = "sslVersion";
54 const char kCipherSuiteKey[] = "cipherSuite";
55 const char kCommonNameKey[] = "commonName";
56 const char kLocalityNameKey[] = "localityName";
57 const char kStateOrProvinceNameKey[] = "stateOrProvinceName";
58 const char kCountryNameKey[] = "countryName";
59 const char kStreetAddressesKey[] = "streetAddresses";
60 const char kOrganizationNamesKey[] = "organizationNames";
61 const char kOrganizationUnitNamesKey[] = "organizationUnitNames";
62 const char kSerialNumberKey[] = "serialNumber";
63 const char kChainKey[] = "chain";
64 const char kSubjectKey[] = "subject";
65 const char kIssuerKey[] = "issuer";
66 const char kDNSNamesKey[] = "dnsNames";
67 const char kIPAddressesKey[] = "ipAddresses";
68 const char kExpiredKey[] = "expired";
69 const char kNotBeforeKey[] = "notBefore";
70 const char kNotAfterKey[] = "notAfter";
71 const char kRawKey[] = "raw";
72
47 const char kOnBeforeRedirectEvent[] = "webRequest.onBeforeRedirect"; 73 const char kOnBeforeRedirectEvent[] = "webRequest.onBeforeRedirect";
48 const char kOnBeforeSendHeadersEvent[] = "webRequest.onBeforeSendHeaders"; 74 const char kOnBeforeSendHeadersEvent[] = "webRequest.onBeforeSendHeaders";
49 const char kOnCompletedEvent[] = "webRequest.onCompleted"; 75 const char kOnCompletedEvent[] = "webRequest.onCompleted";
50 const char kOnHeadersReceivedEvent[] = "webRequest.onHeadersReceived"; 76 const char kOnHeadersReceivedEvent[] = "webRequest.onHeadersReceived";
51 const char kOnResponseStartedEvent[] = "webRequest.onResponseStarted"; 77 const char kOnResponseStartedEvent[] = "webRequest.onResponseStarted";
52 const char kOnSendHeadersEvent[] = "webRequest.onSendHeaders"; 78 const char kOnSendHeadersEvent[] = "webRequest.onSendHeaders";
53 const char kOnAuthRequiredEvent[] = "webRequest.onAuthRequired"; 79 const char kOnAuthRequiredEvent[] = "webRequest.onAuthRequired";
54 80
55 const char kOnBeforeRedirect[] = "onBeforeRedirect"; 81 const char kOnBeforeRedirect[] = "onBeforeRedirect";
56 const char kOnBeforeRequest[] = "onBeforeRequest"; 82 const char kOnBeforeRequest[] = "onBeforeRequest";
(...skipping 18 matching lines...) Expand all
75 const char kHostPermissionsRequired[] = 101 const char kHostPermissionsRequired[] =
76 "You need to request host permissions in the manifest file in order to " 102 "You need to request host permissions in the manifest file in order to "
77 "be notified about requests from the webRequest API."; 103 "be notified about requests from the webRequest API.";
78 const char kInvalidHeaderKeyCombination[] = 104 const char kInvalidHeaderKeyCombination[] =
79 "requestHeaders and responseHeaders cannot both be present."; 105 "requestHeaders and responseHeaders cannot both be present.";
80 const char kInvalidHeader[] = "Invalid header specification '*'."; 106 const char kInvalidHeader[] = "Invalid header specification '*'.";
81 const char kInvalidHeaderName[] = "Invalid header name."; 107 const char kInvalidHeaderName[] = "Invalid header name.";
82 const char kInvalidHeaderValue[] = "Header '*' has an invalid value."; 108 const char kInvalidHeaderValue[] = "Header '*' has an invalid value.";
83 109
84 } // namespace extension_web_request_api_constants 110 } // namespace extension_web_request_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698