| 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; | 124 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; |
| 125 | 125 |
| 126 // content::NotificationObserver implementation. | 126 // content::NotificationObserver implementation. |
| 127 virtual void Observe(int type, | 127 virtual void Observe(int type, |
| 128 const content::NotificationSource& source, | 128 const content::NotificationSource& source, |
| 129 const content::NotificationDetails& details) OVERRIDE; | 129 const content::NotificationDetails& details) OVERRIDE; |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 friend class Profile; | 132 friend class Profile; |
| 133 FRIEND_TEST_ALL_PREFIXES(BrowserInitTest, ProfilesLaunchedAfterCrash); | 133 FRIEND_TEST_ALL_PREFIXES(StartupBrowserCreatorTest, |
| 134 ProfilesLaunchedAfterCrash); |
| 134 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated); | 135 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, ProfileReadmeCreated); |
| 135 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, | 136 FRIEND_TEST_ALL_PREFIXES(ProfileBrowserTest, |
| 136 ProfileDeletedBeforeReadmeCreated); | 137 ProfileDeletedBeforeReadmeCreated); |
| 137 | 138 |
| 138 // Delay, in milliseconds, before README file is created for a new profile. | 139 // Delay, in milliseconds, before README file is created for a new profile. |
| 139 // This is non-const for testing purposes. | 140 // This is non-const for testing purposes. |
| 140 static int create_readme_delay_ms; | 141 static int create_readme_delay_ms; |
| 141 | 142 |
| 142 ProfileImpl(const FilePath& path, | 143 ProfileImpl(const FilePath& path, |
| 143 Delegate* delegate, | 144 Delegate* delegate, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 Profile::Delegate* delegate_; | 273 Profile::Delegate* delegate_; |
| 273 | 274 |
| 274 chrome_browser_net::Predictor* predictor_; | 275 chrome_browser_net::Predictor* predictor_; |
| 275 | 276 |
| 276 bool session_restore_enabled_; | 277 bool session_restore_enabled_; |
| 277 | 278 |
| 278 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 279 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 279 }; | 280 }; |
| 280 | 281 |
| 281 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 282 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |