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

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: Perhaps HostZoomLevelContextDeleter was needed after all ... Created 6 years, 1 month 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 class ProfileImpl : public Profile { 69 class ProfileImpl : public Profile {
70 public: 70 public:
71 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests. 71 // Value written to prefs when the exit type is EXIT_NORMAL. Public for tests.
72 static const char* const kPrefExitTypeNormal; 72 static const char* const kPrefExitTypeNormal;
73 73
74 ~ProfileImpl() override; 74 ~ProfileImpl() override;
75 75
76 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 76 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
77 77
78 // content::BrowserContext implementation: 78 // content::BrowserContext implementation:
79 scoped_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate(
80 const base::FilePath& partition_path) override;
79 base::FilePath GetPath() const override; 81 base::FilePath GetPath() const override;
80 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 82 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
81 net::URLRequestContextGetter* GetRequestContext() override; 83 net::URLRequestContextGetter* GetRequestContext() override;
82 net::URLRequestContextGetter* GetRequestContextForRenderProcess( 84 net::URLRequestContextGetter* GetRequestContextForRenderProcess(
83 int renderer_child_id) override; 85 int renderer_child_id) override;
84 net::URLRequestContextGetter* GetMediaRequestContext() override; 86 net::URLRequestContextGetter* GetMediaRequestContext() override;
85 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 87 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
86 int renderer_child_id) override; 88 int renderer_child_id) override;
87 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( 89 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
88 const base::FilePath& partition_path, 90 const base::FilePath& partition_path,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 static int create_readme_delay_ms; 164 static int create_readme_delay_ms;
163 165
164 ProfileImpl(const base::FilePath& path, 166 ProfileImpl(const base::FilePath& path,
165 Delegate* delegate, 167 Delegate* delegate,
166 CreateMode create_mode, 168 CreateMode create_mode,
167 base::SequencedTaskRunner* sequenced_task_runner); 169 base::SequencedTaskRunner* sequenced_task_runner);
168 170
169 // Does final initialization. Should be called after prefs were loaded. 171 // Does final initialization. Should be called after prefs were loaded.
170 void DoFinalInit(); 172 void DoFinalInit();
171 173
172 // TODO(wjmaclean): Delete this once the HostZoomMap moves to
173 // StoragePartition.
174 void InitHostZoomMap();
175
176 // Does final prefs initialization and calls Init(). 174 // Does final prefs initialization and calls Init().
177 void OnPrefsLoaded(bool success); 175 void OnPrefsLoaded(bool success);
178 176
179 #if defined(ENABLE_SESSION_SERVICE) 177 #if defined(ENABLE_SESSION_SERVICE)
180 void StopCreateSessionServiceTimer(); 178 void StopCreateSessionServiceTimer();
181 179
182 void EnsureSessionServiceCreated(); 180 void EnsureSessionServiceCreated();
183 #endif 181 #endif
184 182
185 183
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // components/keyed_service/content/browser_context_keyed_service_factory.* 287 // components/keyed_service/content/browser_context_keyed_service_factory.*
290 288
291 Profile::Delegate* delegate_; 289 Profile::Delegate* delegate_;
292 290
293 chrome_browser_net::Predictor* predictor_; 291 chrome_browser_net::Predictor* predictor_;
294 292
295 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 293 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
296 }; 294 };
297 295
298 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 296 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698