OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 21 matching lines...) Expand all Loading... |
32 class Preferences; | 32 class Preferences; |
33 } | 33 } |
34 #endif | 34 #endif |
35 | 35 |
36 class NetPrefObserver; | 36 class NetPrefObserver; |
37 | 37 |
38 // The default profile implementation. | 38 // The default profile implementation. |
39 class ProfileImpl : public Profile, | 39 class ProfileImpl : public Profile, |
40 public NotificationObserver { | 40 public NotificationObserver { |
41 public: | 41 public: |
| 42 ProfileImpl(); |
42 virtual ~ProfileImpl(); | 43 virtual ~ProfileImpl(); |
43 | 44 |
44 static void RegisterUserPrefs(PrefService* prefs); | 45 static void RegisterUserPrefs(PrefService* prefs); |
45 | 46 |
46 // Profile implementation. | 47 // Profile implementation. |
47 virtual std::string GetProfileName(); | 48 virtual std::string GetProfileName(); |
48 virtual FilePath GetPath(); | 49 virtual FilePath GetPath(); |
49 virtual bool IsOffTheRecord(); | 50 virtual bool IsOffTheRecord(); |
50 virtual Profile* GetOffTheRecordProfile(); | 51 virtual Profile* GetOffTheRecordProfile(); |
51 virtual void DestroyOffTheRecordProfile(); | 52 virtual void DestroyOffTheRecordProfile(); |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 289 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
289 | 290 |
290 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 291 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
291 | 292 |
292 Profile::Delegate* delegate_; | 293 Profile::Delegate* delegate_; |
293 | 294 |
294 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 295 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
295 }; | 296 }; |
296 | 297 |
297 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 298 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |