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_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 typedef std::vector<Profile*> ProfileVector; | 61 typedef std::vector<Profile*> ProfileVector; |
62 typedef ProfileVector::iterator iterator; | 62 typedef ProfileVector::iterator iterator; |
63 typedef ProfileVector::const_iterator const_iterator; | 63 typedef ProfileVector::const_iterator const_iterator; |
64 | 64 |
65 iterator begin() { return profiles_.begin(); } | 65 iterator begin() { return profiles_.begin(); } |
66 const_iterator begin() const { return profiles_.begin(); } | 66 const_iterator begin() const { return profiles_.begin(); } |
67 iterator end() { return profiles_.end(); } | 67 iterator end() { return profiles_.end(); } |
68 const_iterator end() const { return profiles_.end(); } | 68 const_iterator end() const { return profiles_.end(); } |
69 | 69 |
70 // PowerObserver notifications | 70 // PowerObserver notifications |
71 void OnSuspend(); | 71 virtual void OnSuspend(); |
72 void OnResume(); | 72 virtual void OnResume(); |
73 | 73 |
74 // NotificationObserver implementation. | 74 // NotificationObserver implementation. |
75 virtual void Observe(NotificationType type, | 75 virtual void Observe(NotificationType type, |
76 const NotificationSource& source, | 76 const NotificationSource& source, |
77 const NotificationDetails& details); | 77 const NotificationDetails& details); |
78 | 78 |
79 // ------------------ static utility functions ------------------- | 79 // ------------------ static utility functions ------------------- |
80 | 80 |
81 // Returns the path to the default profile directory, based on the given | 81 // Returns the path to the default profile directory, based on the given |
82 // user data directory. | 82 // user data directory. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |