OLD | NEW |
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 // Helper classes and functions used for the WebRequest API. | 5 // Helper classes and functions used for the WebRequest API. |
6 | 6 |
7 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ |
8 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 EventResponseDelta* CalculateOnBeforeSendHeadersDelta( | 189 EventResponseDelta* CalculateOnBeforeSendHeadersDelta( |
190 const std::string& extension_id, | 190 const std::string& extension_id, |
191 const base::Time& extension_install_time, | 191 const base::Time& extension_install_time, |
192 bool cancel, | 192 bool cancel, |
193 net::HttpRequestHeaders* old_headers, | 193 net::HttpRequestHeaders* old_headers, |
194 net::HttpRequestHeaders* new_headers); | 194 net::HttpRequestHeaders* new_headers); |
195 EventResponseDelta* CalculateOnHeadersReceivedDelta( | 195 EventResponseDelta* CalculateOnHeadersReceivedDelta( |
196 const std::string& extension_id, | 196 const std::string& extension_id, |
197 const base::Time& extension_install_time, | 197 const base::Time& extension_install_time, |
198 bool cancel, | 198 bool cancel, |
199 net::HttpResponseHeaders* old_response_headers, | 199 const net::HttpResponseHeaders* old_response_headers, |
200 ResponseHeaders* new_response_headers); | 200 ResponseHeaders* new_response_headers); |
201 // Destructively moves the auth credentials from |auth_credentials| to the | 201 // Destructively moves the auth credentials from |auth_credentials| to the |
202 // returned EventResponseDelta. | 202 // returned EventResponseDelta. |
203 EventResponseDelta* CalculateOnAuthRequiredDelta( | 203 EventResponseDelta* CalculateOnAuthRequiredDelta( |
204 const std::string& extension_id, | 204 const std::string& extension_id, |
205 const base::Time& extension_install_time, | 205 const base::Time& extension_install_time, |
206 bool cancel, | 206 bool cancel, |
207 scoped_ptr<net::AuthCredentials>* auth_credentials); | 207 scoped_ptr<net::AuthCredentials>* auth_credentials); |
208 | 208 |
209 // These functions merge the responses (the |deltas|) of request handlers. | 209 // These functions merge the responses (the |deltas|) of request handlers. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // success. | 284 // success. |
285 bool ParseResourceType(const std::string& type_str, | 285 bool ParseResourceType(const std::string& type_str, |
286 ResourceType::Type* type); | 286 ResourceType::Type* type); |
287 | 287 |
288 // Triggers clearing each renderer's in-memory cache the next time it navigates. | 288 // Triggers clearing each renderer's in-memory cache the next time it navigates. |
289 void ClearCacheOnNavigation(); | 289 void ClearCacheOnNavigation(); |
290 | 290 |
291 } // namespace extension_web_request_api_helpers | 291 } // namespace extension_web_request_api_helpers |
292 | 292 |
293 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ | 293 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ |
OLD | NEW |