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

Side by Side Diff: content/browser/service_worker/service_worker_context_wrapper.h

Issue 653633004: Shutdown Service Workers before the profile is destroyed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ServiceWorkerProcessManager* process_manager() { 65 ServiceWorkerProcessManager* process_manager() {
66 return process_manager_.get(); 66 return process_manager_.get();
67 } 67 }
68 68
69 // ServiceWorkerContext implementation: 69 // ServiceWorkerContext implementation:
70 void RegisterServiceWorker(const GURL& pattern, 70 void RegisterServiceWorker(const GURL& pattern,
71 const GURL& script_url, 71 const GURL& script_url,
72 const ResultCallback& continuation) override; 72 const ResultCallback& continuation) override;
73 void UnregisterServiceWorker(const GURL& pattern, 73 void UnregisterServiceWorker(const GURL& pattern,
74 const ResultCallback& continuation) override; 74 const ResultCallback& continuation) override;
75 void Terminate() override;
76 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; 75 void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override;
77 void DeleteForOrigin(const GURL& origin_url) override; 76 void DeleteForOrigin(const GURL& origin_url) override;
78 77
79 // DeleteForOrigin with completion callback. Does not exit early, and returns 78 // DeleteForOrigin with completion callback. Does not exit early, and returns
80 // false if one or more of the deletions fail. 79 // false if one or more of the deletions fail.
81 virtual void DeleteForOrigin(const GURL& origin_url, 80 virtual void DeleteForOrigin(const GURL& origin_url,
82 const ResultCallback& done); 81 const ResultCallback& done);
83 82
84 void AddObserver(ServiceWorkerContextObserver* observer); 83 void AddObserver(ServiceWorkerContextObserver* observer);
85 void RemoveObserver(ServiceWorkerContextObserver* observer); 84 void RemoveObserver(ServiceWorkerContextObserver* observer);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Cleared in Shutdown(): 124 // Cleared in Shutdown():
126 scoped_ptr<ServiceWorkerContextCore> context_core_; 125 scoped_ptr<ServiceWorkerContextCore> context_core_;
127 126
128 // Initialized in Init(); true if the user data directory is empty. 127 // Initialized in Init(); true if the user data directory is empty.
129 bool is_incognito_; 128 bool is_incognito_;
130 }; 129 };
131 130
132 } // namespace content 131 } // namespace content
133 132
134 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 133 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW
« 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