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

Unified Diff: extensions/browser/api/web_request/web_request_event_details.h

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_event_details.h
diff --git a/extensions/browser/api/web_request/web_request_event_details.h b/extensions/browser/api/web_request/web_request_event_details.h
index 5eb14cb2a85d8461ee0b32ab875dc970d2f89409..3a79de30fd57b5fccf20208bc31dd8311fb4d129 100644
--- a/extensions/browser/api/web_request/web_request_event_details.h
+++ b/extensions/browser/api/web_request/web_request_event_details.h
@@ -77,6 +77,10 @@ class WebRequestEventDetails {
// - ip
void SetResponseSource(const net::URLRequest* request);
+ // Sets the following key:
+ // - keys::kSSLInfoKey
+ void SetSSLInfo(const net::URLRequest* request);
+
void SetBoolean(const std::string& key, bool value) {
dict_.SetBoolean(key, value);
}

Powered by Google App Engine
This is Rietveld 408576698