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

Unified Diff: content/browser/content_browser_client.h

Issue 6951008: Have AppCache code go through the content embedder API for content settings checks. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/content_browser_client.h
===================================================================
--- content/browser/content_browser_client.h (revision 84527)
+++ content/browser/content_browser_client.h (working copy)
@@ -20,6 +20,7 @@
namespace content {
+class ResourceContext;
class WebUIFactory;
// Embedder API for participating in browser logic.
@@ -61,6 +62,11 @@
// Returns the locale used by the application.
virtual std::string GetApplicationLocale();
+ // Allow the embedder to control if an AppCache can be used for the given url.
+ // This is called on the IO thread.
+ virtual bool AllowAppCache(const GURL& manifest_url,
+ const content::ResourceContext* context);
+
#if defined(OS_LINUX)
// Can return an optional fd for crash handling, otherwise returns -1.
virtual int GetCrashSignalFD(const std::string& process_type);
« no previous file with comments | « content/browser/appcache/chrome_appcache_service_unittest.cc ('k') | content/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698