Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: chrome/browser/extensions/api/web_request/web_request_api_helpers.h

Issue 10905040: Clear in-memory caches of renderers when rules change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Previous version was incomplete Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698