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

Side by Side 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: Created 4 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ 5 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_
6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ 6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // - statusCode 69 // - statusCode
70 // - statusLine 70 // - statusLine
71 void SetResponseHeaders(const net::URLRequest* request, 71 void SetResponseHeaders(const net::URLRequest* request,
72 const net::HttpResponseHeaders* response_headers); 72 const net::HttpResponseHeaders* response_headers);
73 73
74 // Sets the following key: 74 // Sets the following key:
75 // - fromCache 75 // - fromCache
76 // - ip 76 // - ip
77 void SetResponseSource(const net::URLRequest* request); 77 void SetResponseSource(const net::URLRequest* request);
78 78
79 // Sets the following key:
80 // - sslInfo
81 void SetSSLInfo(const net::URLRequest* request);
82
79 void SetBoolean(const std::string& key, bool value) { 83 void SetBoolean(const std::string& key, bool value) {
80 dict_.SetBoolean(key, value); 84 dict_.SetBoolean(key, value);
81 } 85 }
82 86
83 void SetInteger(const std::string& key, int value) { 87 void SetInteger(const std::string& key, int value) {
84 dict_.SetInteger(key, value); 88 dict_.SetInteger(key, value);
85 } 89 }
86 90
87 void SetString(const std::string& key, const std::string& value) { 91 void SetString(const std::string& key, const std::string& value) {
88 dict_.SetString(key, value); 92 dict_.SetString(key, value);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Used to determine the tabId, frameId and parentFrameId. 143 // Used to determine the tabId, frameId and parentFrameId.
140 int render_process_id_; 144 int render_process_id_;
141 int render_frame_id_; 145 int render_frame_id_;
142 146
143 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails); 147 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails);
144 }; 148 };
145 149
146 } // namespace extensions 150 } // namespace extensions
147 151
148 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ 152 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698