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 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 | 56 |
57 // The default profile implementation. | 57 // The default profile implementation. |
58 class ProfileImpl : public Profile { | 58 class ProfileImpl : public Profile { |
59 public: | 59 public: |
60 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. | 60 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. |
61 static const char* const kPrefExitTypeNormal; | 61 static const char* const kPrefExitTypeNormal; |
62 | 62 |
63 virtual ~ProfileImpl(); | 63 virtual ~ProfileImpl(); |
64 | 64 |
65 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 65 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
66 | 66 |
67 // content::BrowserContext implementation: | 67 // content::BrowserContext implementation: |
68 virtual base::FilePath GetPath() OVERRIDE; | 68 virtual base::FilePath GetPath() OVERRIDE; |
69 virtual content::DownloadManagerDelegate* | 69 virtual content::DownloadManagerDelegate* |
70 GetDownloadManagerDelegate() OVERRIDE; | 70 GetDownloadManagerDelegate() OVERRIDE; |
71 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 71 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
72 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 72 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
73 int renderer_child_id) OVERRIDE; | 73 int renderer_child_id) OVERRIDE; |
74 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 74 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
75 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 75 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 // components/browser_context_keyed_service/browser_context_keyed_service_fa
ctory.{h,cc} | 267 // components/browser_context_keyed_service/browser_context_keyed_service_fa
ctory.{h,cc} |
268 | 268 |
269 Profile::Delegate* delegate_; | 269 Profile::Delegate* delegate_; |
270 | 270 |
271 chrome_browser_net::Predictor* predictor_; | 271 chrome_browser_net::Predictor* predictor_; |
272 | 272 |
273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
274 }; | 274 }; |
275 | 275 |
276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |