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

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: Fix unit tests. 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() override;
79 base::FilePath GetPath() const override; 80 base::FilePath GetPath() const override;
80 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override; 81 content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
81 net::URLRequestContextGetter* GetRequestContext() override; 82 net::URLRequestContextGetter* GetRequestContext() override;
82 net::URLRequestContextGetter* GetRequestContextForRenderProcess( 83 net::URLRequestContextGetter* GetRequestContextForRenderProcess(
83 int renderer_child_id) override; 84 int renderer_child_id) override;
84 net::URLRequestContextGetter* GetMediaRequestContext() override; 85 net::URLRequestContextGetter* GetMediaRequestContext() override;
85 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 86 net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
86 int renderer_child_id) override; 87 int renderer_child_id) override;
87 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition( 88 net::URLRequestContextGetter* GetMediaRequestContextForStoragePartition(
88 const base::FilePath& partition_path, 89 const base::FilePath& partition_path,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 static int create_readme_delay_ms; 163 static int create_readme_delay_ms;
163 164
164 ProfileImpl(const base::FilePath& path, 165 ProfileImpl(const base::FilePath& path,
165 Delegate* delegate, 166 Delegate* delegate,
166 CreateMode create_mode, 167 CreateMode create_mode,
167 base::SequencedTaskRunner* sequenced_task_runner); 168 base::SequencedTaskRunner* sequenced_task_runner);
168 169
169 // Does final initialization. Should be called after prefs were loaded. 170 // Does final initialization. Should be called after prefs were loaded.
170 void DoFinalInit(); 171 void DoFinalInit();
171 172
172 // TODO(wjmaclean): Delete this once the HostZoomMap moves to
173 // StoragePartition.
174 void InitHostZoomMap();
175
176 // Does final prefs initialization and calls Init(). 173 // Does final prefs initialization and calls Init().
177 void OnPrefsLoaded(bool success); 174 void OnPrefsLoaded(bool success);
178 175
179 #if defined(ENABLE_SESSION_SERVICE) 176 #if defined(ENABLE_SESSION_SERVICE)
180 void StopCreateSessionServiceTimer(); 177 void StopCreateSessionServiceTimer();
181 178
182 void EnsureSessionServiceCreated(); 179 void EnsureSessionServiceCreated();
183 #endif 180 #endif
184 181
185 182
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // components/keyed_service/content/browser_context_keyed_service_factory.* 286 // components/keyed_service/content/browser_context_keyed_service_factory.*
290 287
291 Profile::Delegate* delegate_; 288 Profile::Delegate* delegate_;
292 289
293 chrome_browser_net::Predictor* predictor_; 290 chrome_browser_net::Predictor* predictor_;
294 291
295 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 292 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
296 }; 293 };
297 294
298 #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