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

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

Issue 2159133002: Shutdown StoragePartition before ProfileIOData is being shut down (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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 0285802834194f66fd3c299e56f1e4819e4305c9..d631257ce49415f38012b2902ed65838e50cf85b 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -17,7 +17,6 @@
#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/common/content_export.h"
#include "content/public/browser/service_worker_context.h"
-#include "net/url_request/url_request_context_getter_observer.h"
namespace base {
class FilePath;
@@ -44,7 +43,6 @@ class StoragePartitionImpl;
// is what is used internally in the service worker lib.
class CONTENT_EXPORT ServiceWorkerContextWrapper
: NON_EXPORTED_BASE(public ServiceWorkerContext),
- public net::URLRequestContextGetterObserver,
public base::RefCountedThreadSafe<ServiceWorkerContextWrapper> {
public:
using StatusCallback = base::Callback<void(ServiceWorkerStatusCode)>;
@@ -67,12 +65,7 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
void Shutdown();
// Must be called on the IO thread.
- void InitializeResourceContext(
- ResourceContext* resource_context,
- scoped_refptr<net::URLRequestContextGetter> request_context_getter);
-
- // For net::URLRequestContextGetterObserver
- void OnContextShuttingDown() override;
+ void InitializeResourceContext(ResourceContext* resource_context);
// Deletes all files on disk and restarts the system asynchronously. This
// leaves the system in a disabled state until it's done. This should be
@@ -251,8 +244,6 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// The ResourceContext associated with this context.
ResourceContext* resource_context_;
- scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
-
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
};
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/service_worker/service_worker_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698