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

Side by Side Diff: content/public/browser/browser_context.h

Issue 653633004: Shutdown Service Workers before the profile is destroyed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios build fix 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0; 157 virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() = 0;
158 158
159 // Returns a push messaging service. The embedder owns the service, and is 159 // Returns a push messaging service. The embedder owns the service, and is
160 // responsible for ensuring that it outlives RenderProcessHost. It's valid to 160 // responsible for ensuring that it outlives RenderProcessHost. It's valid to
161 // return NULL. 161 // return NULL.
162 virtual PushMessagingService* GetPushMessagingService() = 0; 162 virtual PushMessagingService* GetPushMessagingService() = 0;
163 163
164 // Returns the SSL host state decisions for this context. The context may 164 // Returns the SSL host state decisions for this context. The context may
165 // return NULL, implementing the default exception storage strategy. 165 // return NULL, implementing the default exception storage strategy.
166 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0; 166 virtual SSLHostStateDelegate* GetSSLHostStateDelegate() = 0;
167
168 protected:
169 void NotifyWillBeDestroyed();
michaeln 2014/10/22 22:52:46 I think this is nicer than what is currently being
falken 2014/10/23 02:06:38 Done.
167 }; 170 };
168 171
169 } // namespace content 172 } // namespace content
170 173
171 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 174 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698