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

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

Issue 9985002: Allow SessionService to be disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed sky's comments Created 8 years, 8 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
34 34
35 class ProfileManager : public base::NonThreadSafe, 35 class ProfileManager : public base::NonThreadSafe,
36 public content::NotificationObserver, 36 public content::NotificationObserver,
37 public Profile::Delegate { 37 public Profile::Delegate {
38 public: 38 public:
39 typedef base::Callback<void(Profile*, Profile::CreateStatus)> CreateCallback; 39 typedef base::Callback<void(Profile*, Profile::CreateStatus)> CreateCallback;
40 40
41 explicit ProfileManager(const FilePath& user_data_dir); 41 explicit ProfileManager(const FilePath& user_data_dir);
42 virtual ~ProfileManager(); 42 virtual ~ProfileManager();
43 43
44 #if defined(ENABLE_SESSION_SERVICE)
44 // Invokes SessionServiceFactory::ShutdownForProfile() for all profiles. 45 // Invokes SessionServiceFactory::ShutdownForProfile() for all profiles.
45 static void ShutdownSessionServices(); 46 static void ShutdownSessionServices();
47 #endif
46 48
47 // Physically remove deleted profile directories from disk. 49 // Physically remove deleted profile directories from disk.
48 static void NukeDeletedProfilesFromDisk(); 50 static void NukeDeletedProfilesFromDisk();
49 51
50 // DEPRECATED: DO NOT USE unless in ChromeOS. 52 // DEPRECATED: DO NOT USE unless in ChromeOS.
51 // Returns the default profile. This adds the profile to the 53 // Returns the default profile. This adds the profile to the
52 // ProfileManager if it doesn't already exist. This method returns NULL if 54 // ProfileManager if it doesn't already exist. This method returns NULL if
53 // the profile doesn't exist and we can't create it. 55 // the profile doesn't exist and we can't create it.
54 // The profile used can be overridden by using --login-profile on cros. 56 // The profile used can be overridden by using --login-profile on cros.
55 Profile* GetDefaultProfile(const FilePath& user_data_dir); 57 Profile* GetDefaultProfile(const FilePath& user_data_dir);
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 class ProfileManagerWithoutInit : public ProfileManager { 346 class ProfileManagerWithoutInit : public ProfileManager {
345 public: 347 public:
346 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 348 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
347 349
348 protected: 350 protected:
349 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 351 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
350 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 352 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
351 }; 353 };
352 354
353 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 355 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698