OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 virtual BackgroundContentsService* GetBackgroundContentsService() = 0; | 405 virtual BackgroundContentsService* GetBackgroundContentsService() = 0; |
406 | 406 |
407 // Marks the profile as cleanly shutdown. | 407 // Marks the profile as cleanly shutdown. |
408 // | 408 // |
409 // NOTE: this is invoked internally on a normal shutdown, but is public so | 409 // NOTE: this is invoked internally on a normal shutdown, but is public so |
410 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). | 410 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). |
411 virtual void MarkAsCleanShutdown() = 0; | 411 virtual void MarkAsCleanShutdown() = 0; |
412 | 412 |
413 virtual void InitExtensions() = 0; | 413 virtual void InitExtensions() = 0; |
414 | 414 |
415 // Start up service that gathers data from web resource feeds. | |
416 virtual void InitWebResources() = 0; | |
417 | |
418 // Returns the new tab page resource cache. | 415 // Returns the new tab page resource cache. |
419 virtual NTPResourceCache* GetNTPResourceCache() = 0; | 416 virtual NTPResourceCache* GetNTPResourceCache() = 0; |
420 | 417 |
421 // Returns the last directory that was chosen for uploading or opening a file. | 418 // Returns the last directory that was chosen for uploading or opening a file. |
422 virtual FilePath last_selected_directory() = 0; | 419 virtual FilePath last_selected_directory() = 0; |
423 virtual void set_last_selected_directory(const FilePath& path) = 0; | 420 virtual void set_last_selected_directory(const FilePath& path) = 0; |
424 | 421 |
425 #ifdef UNIT_TEST | 422 #ifdef UNIT_TEST |
426 // Use with caution. GetDefaultRequestContext may be called on any thread! | 423 // Use with caution. GetDefaultRequestContext may be called on any thread! |
427 static void set_default_request_context(URLRequestContextGetter* c) { | 424 static void set_default_request_context(URLRequestContextGetter* c) { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 virtual base::Time GetStartTime() const; | 534 virtual base::Time GetStartTime() const; |
538 virtual TabRestoreService* GetTabRestoreService(); | 535 virtual TabRestoreService* GetTabRestoreService(); |
539 virtual void ResetTabRestoreService(); | 536 virtual void ResetTabRestoreService(); |
540 virtual SpellCheckHost* GetSpellCheckHost(); | 537 virtual SpellCheckHost* GetSpellCheckHost(); |
541 virtual void ReinitializeSpellCheckHost(bool force); | 538 virtual void ReinitializeSpellCheckHost(bool force); |
542 virtual WebKitContext* GetWebKitContext(); | 539 virtual WebKitContext* GetWebKitContext(); |
543 virtual DesktopNotificationService* GetDesktopNotificationService(); | 540 virtual DesktopNotificationService* GetDesktopNotificationService(); |
544 virtual BackgroundContentsService* GetBackgroundContentsService(); | 541 virtual BackgroundContentsService* GetBackgroundContentsService(); |
545 virtual void MarkAsCleanShutdown(); | 542 virtual void MarkAsCleanShutdown(); |
546 virtual void InitExtensions(); | 543 virtual void InitExtensions(); |
547 virtual void InitWebResources(); | |
548 virtual NTPResourceCache* GetNTPResourceCache(); | 544 virtual NTPResourceCache* GetNTPResourceCache(); |
549 virtual FilePath last_selected_directory(); | 545 virtual FilePath last_selected_directory(); |
550 virtual void set_last_selected_directory(const FilePath& path); | 546 virtual void set_last_selected_directory(const FilePath& path); |
551 virtual ProfileSyncService* GetProfileSyncService(); | 547 virtual ProfileSyncService* GetProfileSyncService(); |
552 virtual TokenService* GetTokenService(); | 548 virtual TokenService* GetTokenService(); |
553 void InitSyncService(); | 549 void InitSyncService(); |
554 virtual CloudPrintProxyService* GetCloudPrintProxyService(); | 550 virtual CloudPrintProxyService* GetCloudPrintProxyService(); |
555 void InitCloudPrintProxyService(); | 551 void InitCloudPrintProxyService(); |
556 | 552 |
557 // NotificationObserver implementation. | 553 // NotificationObserver implementation. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. | 670 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. |
675 | 671 |
676 #if defined(OS_CHROMEOS) | 672 #if defined(OS_CHROMEOS) |
677 chromeos::Preferences chromeos_preferences_; | 673 chromeos::Preferences chromeos_preferences_; |
678 #endif | 674 #endif |
679 | 675 |
680 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 676 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
681 }; | 677 }; |
682 | 678 |
683 #endif // CHROME_BROWSER_PROFILE_H_ | 679 #endif // CHROME_BROWSER_PROFILE_H_ |
OLD | NEW |