| Index: extensions/browser/api/web_request/web_request_api_helpers.h
|
| diff --git a/extensions/browser/api/web_request/web_request_api_helpers.h b/extensions/browser/api/web_request/web_request_api_helpers.h
|
| index 450f3cae2f0a342e19b828f370609bcde56fe00c..5816c16b7249334e0b647e89c92e1299fec9d90d 100644
|
| --- a/extensions/browser/api/web_request/web_request_api_helpers.h
|
| +++ b/extensions/browser/api/web_request/web_request_api_helpers.h
|
| @@ -19,8 +19,10 @@
|
| #include "content/public/common/resource_type.h"
|
| #include "extensions/browser/warning_set.h"
|
| #include "net/base/auth.h"
|
| +#include "net/cert/x509_certificate.h"
|
| #include "net/http/http_request_headers.h"
|
| #include "net/http/http_response_headers.h"
|
| +#include "net/ssl/ssl_info.h"
|
| #include "url/gurl.h"
|
|
|
| namespace base {
|
| @@ -39,6 +41,7 @@ class Extension;
|
| namespace net {
|
| class BoundNetLog;
|
| class URLRequest;
|
| +class X509Certificate;
|
| }
|
|
|
| namespace extension_web_request_api_helpers {
|
| @@ -360,6 +363,20 @@ const char* ResourceTypeToString(content::ResourceType type);
|
| bool ParseResourceType(const std::string& type_str,
|
| std::vector<content::ResourceType>* types);
|
|
|
| +// Returns a list of dictionaries containing various information about the chain
|
| +// of certificates referenced by |cert|. Ownership is passed to the caller.
|
| +base::ListValue* ExtractCertificateChain(
|
| + scoped_refptr<net::X509Certificate> cert);
|
| +
|
| +// Returns a list of SSL errors contained within |status|. Ownership is passed
|
| +// to the caller.
|
| +base::ListValue* ParseCertificateStatusErrors(net::CertStatus status);
|
| +
|
| +// Returns a dictionary containing various information about the TLS/SSL
|
| +// transport
|
| +// described by |ssl_info|. Ownership is passed to the caller.
|
| +base::DictionaryValue* ExtractConnectionInfo(net::SSLInfo ssl_info);
|
| +
|
| } // namespace extension_web_request_api_helpers
|
|
|
| #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_
|
|
|