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

Side by Side Diff: chrome/browser/profiles/profile_keyed_service.h

Issue 6766004: Create a ProfileDependencyManager to order ProfileKeyedService destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_KEYED_SERVICE_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_KEYED_SERVICE_H_
7
8 // Base class for all ProfileKeyedServices to allow for correct destruction
9 // order.
10 //
11 // Many services that hang off Profile have a two-pass shutdown. Many
12 // subsystems need a first pass shutdown phase where they drop references. Not
13 // all services will need this, so there's a default implementation. Only once
14 // ever system has been given a chance to drop references do we start deleting
Miranda Callahan 2011/03/29 19:07:04 s/ever/every
15 // objects.
16 class ProfileKeyedService {
17 public:
18 // The first pass is to call Shutdown on a ProfileKeyedService.
19 virtual void Shutdown() {}
20
21 // The second pass is the actual deletion of each object.
22 virtual ~ProfileKeyedService() {}
23 };
24
25 #endif // CHROME_BROWSER_PROFILES_PROFILE_KEYED_SERVICE_H_
26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698