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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 10626007: Move ExtensionSystem into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Master merge; moved class declaration Created 8 years, 5 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/profiles/profile_io_data.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) 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 #include "chrome/browser/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 new VisitedLinkMaster(visited_link_event_listener_.get(), this)); 599 new VisitedLinkMaster(visited_link_event_listener_.get(), this));
600 if (!visited_links->Init()) 600 if (!visited_links->Init())
601 return NULL; 601 return NULL;
602 visited_link_master_.swap(visited_links); 602 visited_link_master_.swap(visited_links);
603 } 603 }
604 604
605 return visited_link_master_.get(); 605 return visited_link_master_.get();
606 } 606 }
607 607
608 ExtensionService* ProfileImpl::GetExtensionService() { 608 ExtensionService* ProfileImpl::GetExtensionService() {
609 return ExtensionSystem::Get(this)->extension_service(); 609 return extensions::ExtensionSystem::Get(this)->extension_service();
610 } 610 }
611 611
612 UserScriptMaster* ProfileImpl::GetUserScriptMaster() { 612 UserScriptMaster* ProfileImpl::GetUserScriptMaster() {
613 return ExtensionSystem::Get(this)->user_script_master(); 613 return extensions::ExtensionSystem::Get(this)->user_script_master();
614 } 614 }
615 615
616 ExtensionProcessManager* ProfileImpl::GetExtensionProcessManager() { 616 ExtensionProcessManager* ProfileImpl::GetExtensionProcessManager() {
617 return ExtensionSystem::Get(this)->process_manager(); 617 return extensions::ExtensionSystem::Get(this)->process_manager();
618 } 618 }
619 619
620 ExtensionEventRouter* ProfileImpl::GetExtensionEventRouter() { 620 ExtensionEventRouter* ProfileImpl::GetExtensionEventRouter() {
621 return ExtensionSystem::Get(this)->event_router(); 621 return extensions::ExtensionSystem::Get(this)->event_router();
622 } 622 }
623 623
624 ExtensionSpecialStoragePolicy* 624 ExtensionSpecialStoragePolicy*
625 ProfileImpl::GetExtensionSpecialStoragePolicy() { 625 ProfileImpl::GetExtensionSpecialStoragePolicy() {
626 if (!extension_special_storage_policy_.get()) { 626 if (!extension_special_storage_policy_.get()) {
627 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy( 627 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(
628 CookieSettings::Factory::GetForProfile(this)); 628 CookieSettings::Factory::GetForProfile(this));
629 } 629 }
630 return extension_special_storage_policy_.get(); 630 return extension_special_storage_policy_.get();
631 } 631 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 // created first. 707 // created first.
708 if (!default_request_context_) 708 if (!default_request_context_)
709 default_request_context_ = request_context; 709 default_request_context_ = request_context;
710 710
711 return request_context; 711 return request_context;
712 } 712 }
713 713
714 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess( 714 net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess(
715 int renderer_child_id) { 715 int renderer_child_id) {
716 ExtensionService* extension_service = 716 ExtensionService* extension_service =
717 ExtensionSystem::Get(this)->extension_service(); 717 extensions::ExtensionSystem::Get(this)->extension_service();
718 if (extension_service) { 718 if (extension_service) {
719 const extensions::Extension* installed_app = extension_service-> 719 const extensions::Extension* installed_app = extension_service->
720 GetInstalledAppForRenderer(renderer_child_id); 720 GetInstalledAppForRenderer(renderer_child_id);
721 if (installed_app != NULL && installed_app->is_storage_isolated()) { 721 if (installed_app != NULL && installed_app->is_storage_isolated()) {
722 return GetRequestContextForIsolatedApp(installed_app->id()); 722 return GetRequestContextForIsolatedApp(installed_app->id());
723 } 723 }
724 } 724 }
725 return GetRequestContext(); 725 return GetRequestContext();
726 } 726 }
727 727
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 if (!path.empty()) 1105 if (!path.empty())
1106 *cache_path = path; 1106 *cache_path = path;
1107 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1107 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1108 prefs_->GetInteger(prefs::kDiskCacheSize); 1108 prefs_->GetInteger(prefs::kDiskCacheSize);
1109 } 1109 }
1110 1110
1111 base::Callback<ChromeURLDataManagerBackend*(void)> 1111 base::Callback<ChromeURLDataManagerBackend*(void)>
1112 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1112 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1113 return io_data_.GetChromeURLDataManagerBackendGetter(); 1113 return io_data_.GetChromeURLDataManagerBackendGetter();
1114 } 1114 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698