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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 class ProfileImpl : public Profile { | 68 class ProfileImpl : public Profile { |
69 public: | 69 public: |
70 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. | 70 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. |
71 static const char* const kPrefExitTypeNormal; | 71 static const char* const kPrefExitTypeNormal; |
72 | 72 |
73 virtual ~ProfileImpl(); | 73 virtual ~ProfileImpl(); |
74 | 74 |
75 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 75 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
76 | 76 |
77 // content::BrowserContext implementation: | 77 // content::BrowserContext implementation: |
| 78 virtual scoped_ptr<content::ZoomLevelPrefsStore> |
| 79 CreateZoomLevelPrefsStore() OVERRIDE; |
78 virtual base::FilePath GetPath() const OVERRIDE; | 80 virtual base::FilePath GetPath() const OVERRIDE; |
79 virtual content::DownloadManagerDelegate* | 81 virtual content::DownloadManagerDelegate* |
80 GetDownloadManagerDelegate() OVERRIDE; | 82 GetDownloadManagerDelegate() OVERRIDE; |
81 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 83 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
82 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 84 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
83 int renderer_child_id) OVERRIDE; | 85 int renderer_child_id) OVERRIDE; |
84 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 86 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
85 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 87 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
86 int renderer_child_id) OVERRIDE; | 88 int renderer_child_id) OVERRIDE; |
87 virtual net::URLRequestContextGetter* | 89 virtual net::URLRequestContextGetter* |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 static int create_readme_delay_ms; | 167 static int create_readme_delay_ms; |
166 | 168 |
167 ProfileImpl(const base::FilePath& path, | 169 ProfileImpl(const base::FilePath& path, |
168 Delegate* delegate, | 170 Delegate* delegate, |
169 CreateMode create_mode, | 171 CreateMode create_mode, |
170 base::SequencedTaskRunner* sequenced_task_runner); | 172 base::SequencedTaskRunner* sequenced_task_runner); |
171 | 173 |
172 // Does final initialization. Should be called after prefs were loaded. | 174 // Does final initialization. Should be called after prefs were loaded. |
173 void DoFinalInit(); | 175 void DoFinalInit(); |
174 | 176 |
175 void InitHostZoomMap(); | |
176 | |
177 void OnDefaultZoomLevelChanged(); | 177 void OnDefaultZoomLevelChanged(); |
178 void OnZoomLevelChanged( | |
179 const content::HostZoomMap::ZoomLevelChange& change); | |
180 | 178 |
181 // Does final prefs initialization and calls Init(). | 179 // Does final prefs initialization and calls Init(). |
182 void OnPrefsLoaded(bool success); | 180 void OnPrefsLoaded(bool success); |
183 | 181 |
184 #if defined(ENABLE_SESSION_SERVICE) | 182 #if defined(ENABLE_SESSION_SERVICE) |
185 void StopCreateSessionServiceTimer(); | 183 void StopCreateSessionServiceTimer(); |
186 | 184 |
187 void EnsureSessionServiceCreated(); | 185 void EnsureSessionServiceCreated(); |
188 #endif | 186 #endif |
189 | 187 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 // components/keyed_service/content/browser_context_keyed_service_factory.* | 289 // components/keyed_service/content/browser_context_keyed_service_factory.* |
292 | 290 |
293 Profile::Delegate* delegate_; | 291 Profile::Delegate* delegate_; |
294 | 292 |
295 chrome_browser_net::Predictor* predictor_; | 293 chrome_browser_net::Predictor* predictor_; |
296 | 294 |
297 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 295 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
298 }; | 296 }; |
299 | 297 |
300 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 298 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |