OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_PROFILE_H__ | 7 #ifndef CHROME_BROWSER_PROFILE_H__ |
8 #define CHROME_BROWSER_PROFILE_H__ | 8 #define CHROME_BROWSER_PROFILE_H__ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // Returns the spell checker object for this profile. THIS OBJECT MUST ONLY | 217 // Returns the spell checker object for this profile. THIS OBJECT MUST ONLY |
218 // BE USED ON THE I/O THREAD! This pointer is retrieved from the profile and | 218 // BE USED ON THE I/O THREAD! This pointer is retrieved from the profile and |
219 // sent to the I/O thread where it is actually used. | 219 // sent to the I/O thread where it is actually used. |
220 virtual SpellChecker* GetSpellChecker() = 0; | 220 virtual SpellChecker* GetSpellChecker() = 0; |
221 | 221 |
222 // Marks the profile as cleanly shutdown. | 222 // Marks the profile as cleanly shutdown. |
223 // | 223 // |
224 // NOTE: this is invoked internally on a normal shutdown, but is public so | 224 // NOTE: this is invoked internally on a normal shutdown, but is public so |
225 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). | 225 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). |
226 virtual void MarkAsCleanShutdown() = 0; | 226 virtual void MarkAsCleanShutdown() = 0; |
| 227 |
| 228 virtual void InitExtensions() = 0; |
| 229 |
227 #ifdef UNIT_TEST | 230 #ifdef UNIT_TEST |
228 // Use with caution. GetDefaultRequestContext may be called on any thread! | 231 // Use with caution. GetDefaultRequestContext may be called on any thread! |
229 static void set_default_request_context(URLRequestContext* c) { | 232 static void set_default_request_context(URLRequestContext* c) { |
230 default_request_context_ = c; | 233 default_request_context_ = c; |
231 } | 234 } |
232 #endif | 235 #endif |
233 | 236 |
234 // Did the user restore the last session? This is set by SessionRestore. | 237 // Did the user restore the last session? This is set by SessionRestore. |
235 void set_restored_last_session(bool restored_last_session) { | 238 void set_restored_last_session(bool restored_last_session) { |
236 restored_last_session_ = restored_last_session; | 239 restored_last_session_ = restored_last_session; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 virtual void SetID(const std::wstring& id); | 282 virtual void SetID(const std::wstring& id); |
280 virtual bool DidLastSessionExitCleanly(); | 283 virtual bool DidLastSessionExitCleanly(); |
281 virtual BookmarkModel* GetBookmarkModel(); | 284 virtual BookmarkModel* GetBookmarkModel(); |
282 virtual bool IsSameProfile(Profile* profile); | 285 virtual bool IsSameProfile(Profile* profile); |
283 virtual base::Time GetStartTime() const; | 286 virtual base::Time GetStartTime() const; |
284 virtual TabRestoreService* GetTabRestoreService(); | 287 virtual TabRestoreService* GetTabRestoreService(); |
285 virtual void ResetTabRestoreService(); | 288 virtual void ResetTabRestoreService(); |
286 virtual void ReinitializeSpellChecker(); | 289 virtual void ReinitializeSpellChecker(); |
287 virtual SpellChecker* GetSpellChecker(); | 290 virtual SpellChecker* GetSpellChecker(); |
288 virtual void MarkAsCleanShutdown(); | 291 virtual void MarkAsCleanShutdown(); |
| 292 virtual void InitExtensions(); |
289 #ifdef CHROME_PERSONALIZATION | 293 #ifdef CHROME_PERSONALIZATION |
290 virtual ProfilePersonalization* GetProfilePersonalization(); | 294 virtual ProfilePersonalization* GetProfilePersonalization(); |
291 #endif | 295 #endif |
292 // NotificationObserver implementation. | 296 // NotificationObserver implementation. |
293 virtual void Observe(NotificationType type, | 297 virtual void Observe(NotificationType type, |
294 const NotificationSource& source, | 298 const NotificationSource& source, |
295 const NotificationDetails& details); | 299 const NotificationDetails& details); |
296 | 300 |
297 private: | 301 private: |
298 friend class Profile; | 302 friend class Profile; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 369 |
366 // This struct is used to pass the spellchecker object through the notification | 370 // This struct is used to pass the spellchecker object through the notification |
367 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the | 371 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the |
368 // notification service. | 372 // notification service. |
369 struct SpellcheckerReinitializedDetails { | 373 struct SpellcheckerReinitializedDetails { |
370 scoped_refptr<SpellChecker> spellchecker; | 374 scoped_refptr<SpellChecker> spellchecker; |
371 }; | 375 }; |
372 | 376 |
373 #endif // CHROME_BROWSER_PROFILE_H__ | 377 #endif // CHROME_BROWSER_PROFILE_H__ |
374 | 378 |
OLD | NEW |