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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 bool MergeOnAuthRequiredResponses( | 298 bool MergeOnAuthRequiredResponses( |
299 const EventResponseDeltas& deltas, | 299 const EventResponseDeltas& deltas, |
300 net::AuthCredentials* auth_credentials, | 300 net::AuthCredentials* auth_credentials, |
301 extensions::WarningSet* conflicting_extensions, | 301 extensions::WarningSet* conflicting_extensions, |
302 const net::BoundNetLog* net_log); | 302 const net::BoundNetLog* net_log); |
303 | 303 |
304 // Triggers clearing each renderer's in-memory cache the next time it navigates. | 304 // Triggers clearing each renderer's in-memory cache the next time it navigates. |
305 void ClearCacheOnNavigation(); | 305 void ClearCacheOnNavigation(); |
306 | 306 |
307 // Tells renderer processes that the web request or declarative web request | 307 // Tells renderer processes that the web request or declarative web request |
308 // API has been used by |extension| in profile |profile_id| to collect | 308 // API has been used by |extension| in browser_context |browser_context_id| to |
309 // UMA statistics on Page Load Times. Needs to be called on the UI thread. | 309 // collect UMA statistics on Page Load Times. Needs to be called on the UI |
| 310 // thread. |
310 void NotifyWebRequestAPIUsed( | 311 void NotifyWebRequestAPIUsed( |
311 void* profile_id, | 312 void* browser_context_id, |
312 scoped_refptr<const extensions::Extension> extension); | 313 scoped_refptr<const extensions::Extension> extension); |
313 | 314 |
314 } // namespace extension_web_request_api_helpers | 315 } // namespace extension_web_request_api_helpers |
315 | 316 |
316 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ | 317 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ |
OLD | NEW |