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

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

Issue 215024: Fix appcache_service and request_context referencing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
OLDNEW
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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 433
434 explicit ProfileImpl(const FilePath& path); 434 explicit ProfileImpl(const FilePath& path);
435 435
436 void CreateWebDataService(); 436 void CreateWebDataService();
437 FilePath GetPrefFilePath(); 437 FilePath GetPrefFilePath();
438 438
439 void CreatePasswordStore(); 439 void CreatePasswordStore();
440 440
441 void StopCreateSessionServiceTimer(); 441 void StopCreateSessionServiceTimer();
442 442
443 void EnsureRequestContextCreated() {
444 GetRequestContext();
445 }
446
443 void EnsureSessionServiceCreated() { 447 void EnsureSessionServiceCreated() {
444 GetSessionService(); 448 GetSessionService();
445 } 449 }
446 450
447 // Initializes the spellchecker. If the spellchecker already exsts, then 451 // Initializes the spellchecker. If the spellchecker already exsts, then
448 // it is released, and initialized again. This model makes sure that 452 // it is released, and initialized again. This model makes sure that
449 // spellchecker language can be changed without restarting the browser. 453 // spellchecker language can be changed without restarting the browser.
450 // NOTE: This is being currently called in the UI thread, which is OK as long 454 // NOTE: This is being currently called in the UI thread, which is OK as long
451 // as the spellchecker object is USED in the IO thread. 455 // as the spellchecker object is USED in the IO thread.
452 // The |need_to_broadcast| parameter tells it whether to broadcast the new 456 // The |need_to_broadcast| parameter tells it whether to broadcast the new
453 // spellchecker to the resource message filters. 457 // spellchecker to the resource message filters.
454 void InitializeSpellChecker(bool need_to_broadcast); 458 void InitializeSpellChecker(bool need_to_broadcast);
455 459
456 NotificationRegistrar registrar_; 460 NotificationRegistrar registrar_;
457 461
458 FilePath path_; 462 FilePath path_;
459 FilePath base_cache_path_; 463 FilePath base_cache_path_;
460 scoped_refptr<ChromeAppCacheService> appcache_service_;
461 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; 464 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_;
462 scoped_ptr<VisitedLinkMaster> visited_link_master_; 465 scoped_ptr<VisitedLinkMaster> visited_link_master_;
463 scoped_refptr<ExtensionsService> extensions_service_; 466 scoped_refptr<ExtensionsService> extensions_service_;
464 scoped_refptr<UserScriptMaster> user_script_master_; 467 scoped_refptr<UserScriptMaster> user_script_master_;
465 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; 468 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_;
466 scoped_ptr<ExtensionProcessManager> extension_process_manager_; 469 scoped_ptr<ExtensionProcessManager> extension_process_manager_;
467 scoped_refptr<ExtensionMessageService> extension_message_service_; 470 scoped_refptr<ExtensionMessageService> extension_message_service_;
468 scoped_ptr<SSLHostState> ssl_host_state_; 471 scoped_ptr<SSLHostState> ssl_host_state_;
469 scoped_refptr<net::StrictTransportSecurityState> 472 scoped_refptr<net::StrictTransportSecurityState>
470 strict_transport_security_state_; 473 strict_transport_security_state_;
471 scoped_refptr<StrictTransportSecurityPersister> 474 scoped_refptr<StrictTransportSecurityPersister>
472 strict_transport_security_persister_; 475 strict_transport_security_persister_;
473 scoped_ptr<PrefService> prefs_; 476 scoped_ptr<PrefService> prefs_;
474 scoped_refptr<ThumbnailStore> thumbnail_store_; 477 scoped_refptr<ThumbnailStore> thumbnail_store_;
475 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; 478 scoped_ptr<TemplateURLFetcher> template_url_fetcher_;
476 scoped_ptr<TemplateURLModel> template_url_model_; 479 scoped_ptr<TemplateURLModel> template_url_model_;
477 scoped_ptr<BookmarkModel> bookmark_bar_model_; 480 scoped_ptr<BookmarkModel> bookmark_bar_model_;
478 scoped_refptr<WebResourceService> web_resource_service_; 481 scoped_refptr<WebResourceService> web_resource_service_;
479 482
480 #ifdef CHROME_PERSONALIZATION 483 #ifdef CHROME_PERSONALIZATION
481 scoped_ptr<ProfileSyncService> sync_service_; 484 scoped_ptr<ProfileSyncService> sync_service_;
482 #endif 485 #endif
483 486
487 ChromeAppCacheService* appcache_service_;
488
484 ChromeURLRequestContext* request_context_; 489 ChromeURLRequestContext* request_context_;
485 490
486 ChromeURLRequestContext* media_request_context_; 491 ChromeURLRequestContext* media_request_context_;
487 492
488 ChromeURLRequestContext* extensions_request_context_; 493 ChromeURLRequestContext* extensions_request_context_;
489 494
490 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; 495 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;
491 496
492 Blacklist* blacklist_; 497 Blacklist* blacklist_;
493 498
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 #endif 551 #endif
547 552
548 // This struct is used to pass the spellchecker object through the notification 553 // This struct is used to pass the spellchecker object through the notification
549 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the 554 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the
550 // notification service. 555 // notification service.
551 struct SpellcheckerReinitializedDetails { 556 struct SpellcheckerReinitializedDetails {
552 scoped_refptr<SpellChecker> spellchecker; 557 scoped_refptr<SpellChecker> spellchecker;
553 }; 558 };
554 559
555 #endif // CHROME_BROWSER_PROFILE_H_ 560 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698