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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.h

Issue 633873002: Service Worker: Respect the "clear on exit" content setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contentsettings
Patch Set: sync Created 6 years, 2 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/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 1fb17cc11660e4837f5f800175bed79b3b6445d2..6238debe4b31c8b48d688218628b6fe0f4454af6 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -26,6 +26,7 @@ class URLRequestContextGetter;
namespace storage {
class QuotaManagerProxy;
+class SpecialStoragePolicy;
}
namespace content {
@@ -48,7 +49,8 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// Init and Shutdown are for use on the UI thread when the profile,
// storagepartition is being setup and torn down.
void Init(const base::FilePath& user_data_directory,
- storage::QuotaManagerProxy* quota_manager_proxy);
+ storage::QuotaManagerProxy* quota_manager_proxy,
+ storage::SpecialStoragePolicy* special_storage_policy);
void Shutdown();
// Deletes all files on disk and restarts the system asynchronously. This
@@ -100,9 +102,10 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
void InitInternal(
const base::FilePath& user_data_directory,
const scoped_refptr<base::SequencedTaskRunner>& stores_task_runner,
- const scoped_refptr<base::SequencedTaskRunner>& database_task_runner,
+ scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager,
const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread,
- storage::QuotaManagerProxy* quota_manager_proxy);
+ storage::QuotaManagerProxy* quota_manager_proxy,
+ storage::SpecialStoragePolicy* special_storage_policy);
void ShutdownOnIO();
void DidDeleteAndStartOver(ServiceWorkerStatusCode status);
@@ -120,7 +123,7 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// Cleared in Shutdown():
scoped_ptr<ServiceWorkerContextCore> context_core_;
- // Initialized in Init(); true of the user data directory is empty.
+ // Initialized in Init(); true if the user data directory is empty.
bool is_incognito_;
};

Powered by Google App Engine
This is Rietveld 408576698