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

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

Issue 6361002: Move SystemMonitor to src/chrome/common.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/browser_main.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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
11 #include <vector> 11 #include <vector>
12 12
13 #include "app/system_monitor.h"
14 #include "base/basictypes.h" 13 #include "base/basictypes.h"
15 #include "base/message_loop.h" 14 #include "base/message_loop.h"
16 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
17 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/common/notification_observer.h" 17 #include "chrome/common/notification_observer.h"
19 #include "chrome/common/notification_registrar.h" 18 #include "chrome/common/notification_registrar.h"
19 #include "ui/base/system_monitor/system_monitor.h"
20 20
21 class FilePath; 21 class FilePath;
22 22
23 class ProfileManager : public base::NonThreadSafe, 23 class ProfileManager : public base::NonThreadSafe,
24 public SystemMonitor::PowerObserver, 24 public ui::SystemMonitor::PowerObserver,
25 public NotificationObserver { 25 public NotificationObserver {
26 public: 26 public:
27 ProfileManager(); 27 ProfileManager();
28 virtual ~ProfileManager(); 28 virtual ~ProfileManager();
29 29
30 // Invokes ShutdownSessionService() on all profiles. 30 // Invokes ShutdownSessionService() on all profiles.
31 static void ShutdownSessionServices(); 31 static void ShutdownSessionServices();
32 32
33 // Returns the default profile. This adds the profile to the 33 // Returns the default profile. This adds the profile to the
34 // ProfileManager if it doesn't already exist. This method returns NULL if 34 // ProfileManager if it doesn't already exist. This method returns NULL if
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 // Indicates that a user has logged in and that the profile specified 120 // Indicates that a user has logged in and that the profile specified
121 // in the --login-profile command line argument should be used as the 121 // in the --login-profile command line argument should be used as the
122 // default. 122 // default.
123 bool logged_in_; 123 bool logged_in_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(ProfileManager); 125 DISALLOW_COPY_AND_ASSIGN(ProfileManager);
126 }; 126 };
127 127
128 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 128 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698