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

Unified Diff: content/browser/appcache/chrome_appcache_service.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/appcache/chrome_appcache_service.h
===================================================================
--- content/browser/appcache/chrome_appcache_service.h (revision 84527)
+++ content/browser/appcache/chrome_appcache_service.h (working copy)
@@ -7,8 +7,8 @@
#pragma once
#include "base/memory/ref_counted.h"
-#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "content/browser/browser_thread.h"
+#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
#include "webkit/appcache/appcache_policy.h"
#include "webkit/appcache/appcache_service.h"
@@ -16,6 +16,10 @@
class FilePath;
+namespace content {
+class ResourceContext;
+}
+
// An AppCacheService subclass used by the chrome. There is an instance
// associated with each Profile. This derivation adds refcounting semantics
// since a profile has multiple URLRequestContexts which refer to the same
@@ -35,7 +39,7 @@
void InitializeOnIOThread(
const FilePath& cache_path, // may be empty to use in-memory structures
- scoped_refptr<HostContentSettingsMap> content_settings_map,
+ const content::ResourceContext* resource_context,
scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy,
bool clear_local_state_on_exit);
@@ -57,7 +61,7 @@
const NotificationSource& source,
const NotificationDetails& details);
- scoped_refptr<HostContentSettingsMap> host_contents_settings_map_;
+ const content::ResourceContext* resource_context_;
NotificationRegistrar registrar_;
bool clear_local_state_on_exit_;
FilePath cache_path_;
« no previous file with comments | « chrome/browser/ui/webui/collected_cookies_ui_delegate.cc ('k') | content/browser/appcache/chrome_appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698