Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: chrome/browser/profiles/profile_impl.h

Issue 154593002: Refactor pref code out of ProfileImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge up to r249119 Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/prefs/pref_hash_browsertest.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // The default profile implementation. 53 // The default profile implementation.
54 class ProfileImpl : public Profile { 54 class ProfileImpl : public Profile {
55 public: 55 public:
56 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. 56 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests.
57 static const char* const kPrefExitTypeNormal; 57 static const char* const kPrefExitTypeNormal;
58 58
59 virtual ~ProfileImpl(); 59 virtual ~ProfileImpl();
60 60
61 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 61 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
62 62
63 // Ensures that the preference hash store has been initialized for the profile
64 // at |profile_path|.
65 static void InitializePrefHashStoreIfRequired(
66 const base::FilePath& profile_path);
67
68 // Resets the contents of the preference hash store for the profile at
69 // |profile_path|.
70 static void ResetPrefHashStore(const base::FilePath& profile_path);
71
72 // content::BrowserContext implementation: 63 // content::BrowserContext implementation:
73 virtual base::FilePath GetPath() const OVERRIDE; 64 virtual base::FilePath GetPath() const OVERRIDE;
74 virtual content::DownloadManagerDelegate* 65 virtual content::DownloadManagerDelegate*
75 GetDownloadManagerDelegate() OVERRIDE; 66 GetDownloadManagerDelegate() OVERRIDE;
76 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 67 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
77 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 68 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
78 int renderer_child_id) OVERRIDE; 69 int renderer_child_id) OVERRIDE;
79 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 70 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
80 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 71 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
81 int renderer_child_id) OVERRIDE; 72 int renderer_child_id) OVERRIDE;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 172
182 void InitHostZoomMap(); 173 void InitHostZoomMap();
183 174
184 void OnDefaultZoomLevelChanged(); 175 void OnDefaultZoomLevelChanged();
185 void OnZoomLevelChanged( 176 void OnZoomLevelChanged(
186 const content::HostZoomMap::ZoomLevelChange& change); 177 const content::HostZoomMap::ZoomLevelChange& change);
187 178
188 // Does final prefs initialization and calls Init(). 179 // Does final prefs initialization and calls Init().
189 void OnPrefsLoaded(bool success); 180 void OnPrefsLoaded(bool success);
190 181
191 base::FilePath GetPrefFilePath();
192
193 #if defined(ENABLE_SESSION_SERVICE) 182 #if defined(ENABLE_SESSION_SERVICE)
194 void StopCreateSessionServiceTimer(); 183 void StopCreateSessionServiceTimer();
195 184
196 void EnsureSessionServiceCreated(); 185 void EnsureSessionServiceCreated();
197 #endif 186 #endif
198 187
199 188
200 void EnsureRequestContextCreated() { 189 void EnsureRequestContextCreated() {
201 GetRequestContext(); 190 GetRequestContext();
202 } 191 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // components/browser_context_keyed_service/browser_context_keyed_service_fa ctory.{h,cc} 280 // components/browser_context_keyed_service/browser_context_keyed_service_fa ctory.{h,cc}
292 281
293 Profile::Delegate* delegate_; 282 Profile::Delegate* delegate_;
294 283
295 chrome_browser_net::Predictor* predictor_; 284 chrome_browser_net::Predictor* predictor_;
296 285
297 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 286 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
298 }; 287 };
299 288
300 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 289 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_hash_browsertest.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698