OLD | NEW |
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_PROFILE_MANAGER_H__ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
8 #define CHROME_BROWSER_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" | 13 #include "app/system_monitor.h" |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
16 #include "base/non_thread_safe.h" | 16 #include "base/non_thread_safe.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/notification_observer.h" | 18 #include "chrome/common/notification_observer.h" |
19 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
20 | 20 |
21 class FilePath; | 21 class FilePath; |
22 | 22 |
23 class ProfileManager : public NonThreadSafe, | 23 class ProfileManager : public NonThreadSafe, |
24 public SystemMonitor::PowerObserver, | 24 public SystemMonitor::PowerObserver, |
25 public NotificationObserver { | 25 public NotificationObserver { |
26 public: | 26 public: |
27 ProfileManager(); | 27 ProfileManager(); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 NotificationRegistrar registrar_; | 118 NotificationRegistrar registrar_; |
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_PROFILE_MANAGER_H__ | 128 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
OLD | NEW |