OLD | NEW |
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // - statusCode | 70 // - statusCode |
71 // - statusLine | 71 // - statusLine |
72 void SetResponseHeaders(const net::URLRequest* request, | 72 void SetResponseHeaders(const net::URLRequest* request, |
73 const net::HttpResponseHeaders* response_headers); | 73 const net::HttpResponseHeaders* response_headers); |
74 | 74 |
75 // Sets the following key: | 75 // Sets the following key: |
76 // - fromCache | 76 // - fromCache |
77 // - ip | 77 // - ip |
78 void SetResponseSource(const net::URLRequest* request); | 78 void SetResponseSource(const net::URLRequest* request); |
79 | 79 |
| 80 // Sets the following key: |
| 81 // - keys::kSSLInfoKey |
| 82 void SetSSLInfo(const net::URLRequest* request); |
| 83 |
80 void SetBoolean(const std::string& key, bool value) { | 84 void SetBoolean(const std::string& key, bool value) { |
81 dict_.SetBoolean(key, value); | 85 dict_.SetBoolean(key, value); |
82 } | 86 } |
83 | 87 |
84 void SetInteger(const std::string& key, int value) { | 88 void SetInteger(const std::string& key, int value) { |
85 dict_.SetInteger(key, value); | 89 dict_.SetInteger(key, value); |
86 } | 90 } |
87 | 91 |
88 void SetString(const std::string& key, const std::string& value) { | 92 void SetString(const std::string& key, const std::string& value) { |
89 dict_.SetString(key, value); | 93 dict_.SetString(key, value); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // Used to determine the tabId, frameId and parentFrameId. | 159 // Used to determine the tabId, frameId and parentFrameId. |
156 int render_process_id_; | 160 int render_process_id_; |
157 int render_frame_id_; | 161 int render_frame_id_; |
158 | 162 |
159 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails); | 163 DISALLOW_COPY_AND_ASSIGN(WebRequestEventDetails); |
160 }; | 164 }; |
161 | 165 |
162 } // namespace extensions | 166 } // namespace extensions |
163 | 167 |
164 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ | 168 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_EVENT_DETAILS_H_ |
OLD | NEW |