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

Side by Side Diff: chrome/browser/profile.h

Issue 271052: Browser side support (sans UI) for desktop notifications.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « chrome/browser/notifications/notifications_prefs_cache.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 12 matching lines...) Expand all
23 23
24 namespace net { 24 namespace net {
25 class StrictTransportSecurityState; 25 class StrictTransportSecurityState;
26 class SSLConfigService; 26 class SSLConfigService;
27 } 27 }
28 class Blacklist; 28 class Blacklist;
29 class BookmarkModel; 29 class BookmarkModel;
30 class BrowserThemeProvider; 30 class BrowserThemeProvider;
31 class ChromeAppCacheService; 31 class ChromeAppCacheService;
32 class ChromeURLRequestContext; 32 class ChromeURLRequestContext;
33 class DesktopNotificationService;
33 class DownloadManager; 34 class DownloadManager;
34 class Extension; 35 class Extension;
35 class ExtensionDevToolsManager; 36 class ExtensionDevToolsManager;
36 class ExtensionProcessManager; 37 class ExtensionProcessManager;
37 class ExtensionMessageService; 38 class ExtensionMessageService;
38 class ExtensionsService; 39 class ExtensionsService;
39 class FaviconService; 40 class FaviconService;
40 class HistoryService; 41 class HistoryService;
41 class NavigationController; 42 class NavigationController;
42 class PasswordStore; 43 class PasswordStore;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // sent to the I/O thread where it is actually used. 337 // sent to the I/O thread where it is actually used.
337 virtual SpellChecker* GetSpellChecker() = 0; 338 virtual SpellChecker* GetSpellChecker() = 0;
338 339
339 // Deletes the spellchecker. This is only really useful when we need to purge 340 // Deletes the spellchecker. This is only really useful when we need to purge
340 // memory. 341 // memory.
341 virtual void DeleteSpellChecker() = 0; 342 virtual void DeleteSpellChecker() = 0;
342 343
343 // Returns the WebKitContext assigned to this profile. 344 // Returns the WebKitContext assigned to this profile.
344 virtual WebKitContext* GetWebKitContext() = 0; 345 virtual WebKitContext* GetWebKitContext() = 0;
345 346
347 // Returns the provider of desktop notifications for this profile.
348 virtual DesktopNotificationService* GetDesktopNotificationService() = 0;
349
346 // Marks the profile as cleanly shutdown. 350 // Marks the profile as cleanly shutdown.
347 // 351 //
348 // NOTE: this is invoked internally on a normal shutdown, but is public so 352 // NOTE: this is invoked internally on a normal shutdown, but is public so
349 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION). 353 // that it can be invoked when the user logs out/powers down (WM_ENDSESSION).
350 virtual void MarkAsCleanShutdown() = 0; 354 virtual void MarkAsCleanShutdown() = 0;
351 355
352 virtual void InitExtensions() = 0; 356 virtual void InitExtensions() = 0;
353 357
354 // Start up service that gathers data from web resource feeds. 358 // Start up service that gathers data from web resource feeds.
355 virtual void InitWebResources() = 0; 359 virtual void InitWebResources() = 0;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 virtual bool DidLastSessionExitCleanly(); 436 virtual bool DidLastSessionExitCleanly();
433 virtual BookmarkModel* GetBookmarkModel(); 437 virtual BookmarkModel* GetBookmarkModel();
434 virtual bool IsSameProfile(Profile* profile); 438 virtual bool IsSameProfile(Profile* profile);
435 virtual base::Time GetStartTime() const; 439 virtual base::Time GetStartTime() const;
436 virtual TabRestoreService* GetTabRestoreService(); 440 virtual TabRestoreService* GetTabRestoreService();
437 virtual void ResetTabRestoreService(); 441 virtual void ResetTabRestoreService();
438 virtual void ReinitializeSpellChecker(); 442 virtual void ReinitializeSpellChecker();
439 virtual SpellChecker* GetSpellChecker(); 443 virtual SpellChecker* GetSpellChecker();
440 virtual void DeleteSpellChecker() { DeleteSpellCheckerImpl(true); } 444 virtual void DeleteSpellChecker() { DeleteSpellCheckerImpl(true); }
441 virtual WebKitContext* GetWebKitContext(); 445 virtual WebKitContext* GetWebKitContext();
446 virtual DesktopNotificationService* GetDesktopNotificationService();
442 virtual void MarkAsCleanShutdown(); 447 virtual void MarkAsCleanShutdown();
443 virtual void InitExtensions(); 448 virtual void InitExtensions();
444 virtual void InitWebResources(); 449 virtual void InitWebResources();
445 virtual ProfileSyncService* GetProfileSyncService(); 450 virtual ProfileSyncService* GetProfileSyncService();
446 void InitSyncService(); 451 void InitSyncService();
447 452
448 // NotificationObserver implementation. 453 // NotificationObserver implementation.
449 virtual void Observe(NotificationType type, 454 virtual void Observe(NotificationType type,
450 const NotificationSource& source, 455 const NotificationSource& source,
451 const NotificationDetails& details); 456 const NotificationDetails& details);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 Blacklist* blacklist_; 518 Blacklist* blacklist_;
514 519
515 scoped_refptr<DownloadManager> download_manager_; 520 scoped_refptr<DownloadManager> download_manager_;
516 scoped_refptr<HistoryService> history_service_; 521 scoped_refptr<HistoryService> history_service_;
517 scoped_refptr<FaviconService> favicon_service_; 522 scoped_refptr<FaviconService> favicon_service_;
518 scoped_refptr<WebDataService> web_data_service_; 523 scoped_refptr<WebDataService> web_data_service_;
519 scoped_refptr<PasswordStore> password_store_; 524 scoped_refptr<PasswordStore> password_store_;
520 scoped_refptr<SessionService> session_service_; 525 scoped_refptr<SessionService> session_service_;
521 scoped_ptr<BrowserThemeProvider> theme_provider_; 526 scoped_ptr<BrowserThemeProvider> theme_provider_;
522 scoped_refptr<WebKitContext> webkit_context_; 527 scoped_refptr<WebKitContext> webkit_context_;
528 scoped_ptr<DesktopNotificationService> desktop_notification_service_;
523 bool history_service_created_; 529 bool history_service_created_;
524 bool favicon_service_created_; 530 bool favicon_service_created_;
525 bool created_web_data_service_; 531 bool created_web_data_service_;
526 bool created_password_store_; 532 bool created_password_store_;
527 bool created_download_manager_; 533 bool created_download_manager_;
528 bool created_theme_provider_; 534 bool created_theme_provider_;
529 // Whether or not the last session exited cleanly. This is set only once. 535 // Whether or not the last session exited cleanly. This is set only once.
530 bool last_session_exited_cleanly_; 536 bool last_session_exited_cleanly_;
531 537
532 base::OneShotTimer<ProfileImpl> create_session_service_timer_; 538 base::OneShotTimer<ProfileImpl> create_session_service_timer_;
(...skipping 21 matching lines...) Expand all
554 }; 560 };
555 561
556 // This struct is used to pass the spellchecker object through the notification 562 // This struct is used to pass the spellchecker object through the notification
557 // SPELLCHECKER_REINITIALIZED. This is used as the details for the notification 563 // SPELLCHECKER_REINITIALIZED. This is used as the details for the notification
558 // service. 564 // service.
559 struct SpellcheckerReinitializedDetails { 565 struct SpellcheckerReinitializedDetails {
560 scoped_refptr<SpellChecker> spellchecker; 566 scoped_refptr<SpellChecker> spellchecker;
561 }; 567 };
562 568
563 #endif // CHROME_BROWSER_PROFILE_H_ 569 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notifications_prefs_cache.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698