| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // success. | 272 // success. |
| 273 bool ParseResourceType(const std::string& type_str, | 273 bool ParseResourceType(const std::string& type_str, |
| 274 ResourceType::Type* type); | 274 ResourceType::Type* type); |
| 275 | 275 |
| 276 // Returns whether |extension| may access |url| based on host permissions. | 276 // Returns whether |extension| may access |url| based on host permissions. |
| 277 // In addition to that access is granted to about: URLs and extension URLs | 277 // In addition to that access is granted to about: URLs and extension URLs |
| 278 // that are in the scope of |extension|. | 278 // that are in the scope of |extension|. |
| 279 bool CanExtensionAccessURL(const extensions::Extension* extension, | 279 bool CanExtensionAccessURL(const extensions::Extension* extension, |
| 280 const GURL& url); | 280 const GURL& url); |
| 281 | 281 |
| 282 // Triggers clearing each renderer's in-memory cache the next time it navigates. |
| 283 void ClearCacheOnNavigation(); |
| 284 |
| 282 } // namespace extension_web_request_api_helpers | 285 } // namespace extension_web_request_api_helpers |
| 283 | 286 |
| 284 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ | 287 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_HELPERS_H_ |
| OLD | NEW |