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

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

Issue 9420036: Also delay regular profile destruction... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
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 // This class keeps track of the currently-active profiles in the runtime. 5 // This class keeps track of the currently-active profiles in the runtime.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 friend class TestingProfileManager; 212 friend class TestingProfileManager;
213 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles); 213 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles);
214 214
215 // This struct contains information about profiles which are being loaded or 215 // This struct contains information about profiles which are being loaded or
216 // were loaded. 216 // were loaded.
217 struct ProfileInfo { 217 struct ProfileInfo {
218 ProfileInfo(Profile* profile, bool created) 218 ProfileInfo(Profile* profile, bool created)
219 : profile(profile), created(created) { 219 : profile(profile), created(created) {
220 } 220 }
221 221
222 ~ProfileInfo() {} 222 ~ProfileInfo();
223 223
224 scoped_ptr<Profile> profile; 224 scoped_ptr<Profile> profile;
225 // Whether profile has been fully loaded (created and initialized). 225 // Whether profile has been fully loaded (created and initialized).
226 bool created; 226 bool created;
227 // List of callbacks to run when profile initialization is done. Note, when 227 // List of callbacks to run when profile initialization is done. Note, when
228 // profile is fully loaded this vector will be empty. 228 // profile is fully loaded this vector will be empty.
229 std::vector<CreateCallback> callbacks; 229 std::vector<CreateCallback> callbacks;
230 230
231 private: 231 private:
232 DISALLOW_COPY_AND_ASSIGN(ProfileInfo); 232 DISALLOW_COPY_AND_ASSIGN(ProfileInfo);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 class ProfileManagerWithoutInit : public ProfileManager { 320 class ProfileManagerWithoutInit : public ProfileManager {
321 public: 321 public:
322 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 322 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
323 323
324 protected: 324 protected:
325 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 325 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
326 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 326 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
327 }; 327 };
328 328
329 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 329 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698