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

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

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r288093. Created 6 years, 4 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class ProfileImpl : public Profile { 62 class ProfileImpl : public Profile {
63 public: 63 public:
64 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. 64 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests.
65 static const char* const kPrefExitTypeNormal; 65 static const char* const kPrefExitTypeNormal;
66 66
67 virtual ~ProfileImpl(); 67 virtual ~ProfileImpl();
68 68
69 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 69 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
70 70
71 // content::BrowserContext implementation: 71 // content::BrowserContext implementation:
72 virtual double GetDefaultZoomLevel() const OVERRIDE;
73 virtual content::ZoomLevelPrefsDelegate* CreateZoomLevelPrefsDelegate()
74 OVERRIDE;
72 virtual base::FilePath GetPath() const OVERRIDE; 75 virtual base::FilePath GetPath() const OVERRIDE;
73 virtual content::DownloadManagerDelegate* 76 virtual content::DownloadManagerDelegate*
74 GetDownloadManagerDelegate() OVERRIDE; 77 GetDownloadManagerDelegate() OVERRIDE;
75 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 78 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
76 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 79 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
77 int renderer_child_id) OVERRIDE; 80 int renderer_child_id) OVERRIDE;
78 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE; 81 virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
79 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 82 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
80 int renderer_child_id) OVERRIDE; 83 int renderer_child_id) OVERRIDE;
81 virtual net::URLRequestContextGetter* 84 virtual net::URLRequestContextGetter*
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 static int create_readme_delay_ms; 162 static int create_readme_delay_ms;
160 163
161 ProfileImpl(const base::FilePath& path, 164 ProfileImpl(const base::FilePath& path,
162 Delegate* delegate, 165 Delegate* delegate,
163 CreateMode create_mode, 166 CreateMode create_mode,
164 base::SequencedTaskRunner* sequenced_task_runner); 167 base::SequencedTaskRunner* sequenced_task_runner);
165 168
166 // Does final initialization. Should be called after prefs were loaded. 169 // Does final initialization. Should be called after prefs were loaded.
167 void DoFinalInit(); 170 void DoFinalInit();
168 171
169 void InitHostZoomMap();
170
171 void OnDefaultZoomLevelChanged(); 172 void OnDefaultZoomLevelChanged();
172 void OnZoomLevelChanged( 173 void OnZoomLevelChanged(
173 const content::HostZoomMap::ZoomLevelChange& change); 174 const content::HostZoomMap::ZoomLevelChange& change);
174 175
175 // Does final prefs initialization and calls Init(). 176 // Does final prefs initialization and calls Init().
176 void OnPrefsLoaded(bool success); 177 void OnPrefsLoaded(bool success);
177 178
178 #if defined(ENABLE_SESSION_SERVICE) 179 #if defined(ENABLE_SESSION_SERVICE)
179 void StopCreateSessionServiceTimer(); 180 void StopCreateSessionServiceTimer();
180 181
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // components/keyed_service/content/browser_context_keyed_service_factory.* 286 // components/keyed_service/content/browser_context_keyed_service_factory.*
286 287
287 Profile::Delegate* delegate_; 288 Profile::Delegate* delegate_;
288 289
289 chrome_browser_net::Predictor* predictor_; 290 chrome_browser_net::Predictor* predictor_;
290 291
291 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 292 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
292 }; 293 };
293 294
294 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 295 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698