| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Creates a URLRequestJob for loading component extension resources out of | 34 // Creates a URLRequestJob for loading component extension resources out of |
| 35 // a Chrome resource bundle. Returns NULL if the requested resource is not a | 35 // a Chrome resource bundle. Returns NULL if the requested resource is not a |
| 36 // component extension resource. | 36 // component extension resource. |
| 37 net::URLRequestJob* MaybeCreateURLRequestResourceBundleJob( | 37 net::URLRequestJob* MaybeCreateURLRequestResourceBundleJob( |
| 38 net::URLRequest* request, | 38 net::URLRequest* request, |
| 39 net::NetworkDelegate* network_delegate, | 39 net::NetworkDelegate* network_delegate, |
| 40 const base::FilePath& directory_path, | 40 const base::FilePath& directory_path, |
| 41 const std::string& content_security_policy, | 41 const std::string& content_security_policy, |
| 42 bool send_cors_header); | 42 bool send_cors_header); |
| 43 | 43 |
| 44 // Returns true if |request| corresponds to a resource request from a |
| 45 // <webview>. |
| 46 bool IsWebViewRequest(net::URLRequest* request); |
| 47 |
| 44 } // namespace url_request_util | 48 } // namespace url_request_util |
| 45 } // namespace extensions | 49 } // namespace extensions |
| 46 | 50 |
| 47 #endif // CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_ | 51 #endif // CHROME_BROWSER_EXTENSIONS_URL_REQUEST_UTIL_H_ |
| OLD | NEW |