| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_MANAGED_MODE_H_ | 5 #ifndef CHROME_BROWSER_MANAGED_MODE_H_ |
| 6 #define CHROME_BROWSER_MANAGED_MODE_H_ | 6 #define CHROME_BROWSER_MANAGED_MODE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 15 #include "chrome/browser/ui/browser_list.h" | 14 #include "chrome/browser/ui/browser_list.h" |
| 16 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 18 | 17 |
| 19 class Browser; | 18 class Browser; |
| 20 template<typename T> | 19 template<typename T> |
| 21 struct DefaultSingletonTraits; | 20 struct DefaultSingletonTraits; |
| 22 class PrefService; | 21 class PrefService; |
| 23 class Profile; | 22 class Profile; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 content::NotificationRegistrar registrar_; | 73 content::NotificationRegistrar registrar_; |
| 75 | 74 |
| 76 // The managed profile. This is non-NULL only while we're entering | 75 // The managed profile. This is non-NULL only while we're entering |
| 77 // managed mode. | 76 // managed mode. |
| 78 const Profile* managed_profile_; | 77 const Profile* managed_profile_; |
| 79 std::set<const Browser*> browsers_to_close_; | 78 std::set<const Browser*> browsers_to_close_; |
| 80 std::vector<EnterCallback> callbacks_; | 79 std::vector<EnterCallback> callbacks_; |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 #endif // CHROME_BROWSER_MANAGED_MODE_H_ | 82 #endif // CHROME_BROWSER_MANAGED_MODE_H_ |
| OLD | NEW |