| 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 double GetDefaultZoomLevel() const OVERRIDE; |
| 79 virtual content::ZoomLevelPrefsDelegate* CreateZoomLevelPrefsDelegate() |
| 80 OVERRIDE; |
| 78 virtual base::FilePath GetPath() const OVERRIDE; | 81 virtual base::FilePath GetPath() const OVERRIDE; |
| 79 virtual content::DownloadManagerDelegate* | 82 virtual content::DownloadManagerDelegate* |
| 80 GetDownloadManagerDelegate() OVERRIDE; | 83 GetDownloadManagerDelegate() OVERRIDE; |
| 81 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 84 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
| 82 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 85 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
| 83 int renderer_child_id) OVERRIDE; | 86 int renderer_child_id) OVERRIDE; |
| 84 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; | 87 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; |
| 85 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( | 88 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( |
| 86 int renderer_child_id) OVERRIDE; | 89 int renderer_child_id) OVERRIDE; |
| 87 virtual net::URLRequestContextGetter* | 90 virtual net::URLRequestContextGetter* |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 static int create_readme_delay_ms; | 168 static int create_readme_delay_ms; |
| 166 | 169 |
| 167 ProfileImpl(const base::FilePath& path, | 170 ProfileImpl(const base::FilePath& path, |
| 168 Delegate* delegate, | 171 Delegate* delegate, |
| 169 CreateMode create_mode, | 172 CreateMode create_mode, |
| 170 base::SequencedTaskRunner* sequenced_task_runner); | 173 base::SequencedTaskRunner* sequenced_task_runner); |
| 171 | 174 |
| 172 // Does final initialization. Should be called after prefs were loaded. | 175 // Does final initialization. Should be called after prefs were loaded. |
| 173 void DoFinalInit(); | 176 void DoFinalInit(); |
| 174 | 177 |
| 175 void InitHostZoomMap(); | |
| 176 | |
| 177 void OnDefaultZoomLevelChanged(); | 178 void OnDefaultZoomLevelChanged(); |
| 178 void OnZoomLevelChanged( | 179 void OnZoomLevelChanged( |
| 179 const content::HostZoomMap::ZoomLevelChange& change); | 180 const content::HostZoomMap::ZoomLevelChange& change); |
| 180 | 181 |
| 181 // Does final prefs initialization and calls Init(). | 182 // Does final prefs initialization and calls Init(). |
| 182 void OnPrefsLoaded(bool success); | 183 void OnPrefsLoaded(bool success); |
| 183 | 184 |
| 184 #if defined(ENABLE_SESSION_SERVICE) | 185 #if defined(ENABLE_SESSION_SERVICE) |
| 185 void StopCreateSessionServiceTimer(); | 186 void StopCreateSessionServiceTimer(); |
| 186 | 187 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // components/keyed_service/content/browser_context_keyed_service_factory.* | 292 // components/keyed_service/content/browser_context_keyed_service_factory.* |
| 292 | 293 |
| 293 Profile::Delegate* delegate_; | 294 Profile::Delegate* delegate_; |
| 294 | 295 |
| 295 chrome_browser_net::Predictor* predictor_; | 296 chrome_browser_net::Predictor* predictor_; |
| 296 | 297 |
| 297 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 298 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
| 298 }; | 299 }; |
| 299 | 300 |
| 300 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 301 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
| OLD | NEW |