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

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

Issue 6951008: Have AppCache code go through the content embedder API for content settings checks. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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/profiles/profile.cc ('k') | chrome/browser/profiles/profile_impl_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 ChromeAppCacheService* ProfileImpl::GetAppCacheService() { 708 ChromeAppCacheService* ProfileImpl::GetAppCacheService() {
709 if (!appcache_service_) { 709 if (!appcache_service_) {
710 appcache_service_ = new ChromeAppCacheService; 710 appcache_service_ = new ChromeAppCacheService;
711 BrowserThread::PostTask( 711 BrowserThread::PostTask(
712 BrowserThread::IO, FROM_HERE, 712 BrowserThread::IO, FROM_HERE,
713 NewRunnableMethod( 713 NewRunnableMethod(
714 appcache_service_.get(), 714 appcache_service_.get(),
715 &ChromeAppCacheService::InitializeOnIOThread, 715 &ChromeAppCacheService::InitializeOnIOThread,
716 IsOffTheRecord() 716 IsOffTheRecord()
717 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), 717 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname),
718 make_scoped_refptr(GetHostContentSettingsMap()), 718 &GetResourceContext(),
719 make_scoped_refptr(GetExtensionSpecialStoragePolicy()), 719 make_scoped_refptr(GetExtensionSpecialStoragePolicy()),
720 clear_local_state_on_exit_)); 720 clear_local_state_on_exit_));
721 } 721 }
722 return appcache_service_; 722 return appcache_service_;
723 } 723 }
724 724
725 webkit_database::DatabaseTracker* ProfileImpl::GetDatabaseTracker() { 725 webkit_database::DatabaseTracker* ProfileImpl::GetDatabaseTracker() {
726 if (!db_tracker_) { 726 if (!db_tracker_) {
727 db_tracker_ = new webkit_database::DatabaseTracker( 727 db_tracker_ = new webkit_database::DatabaseTracker(
728 GetPath(), IsOffTheRecord(), GetExtensionSpecialStoragePolicy()); 728 GetPath(), IsOffTheRecord(), GetExtensionSpecialStoragePolicy());
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 return pref_proxy_config_tracker_; 1547 return pref_proxy_config_tracker_;
1548 } 1548 }
1549 1549
1550 prerender::PrerenderManager* ProfileImpl::GetPrerenderManager() { 1550 prerender::PrerenderManager* ProfileImpl::GetPrerenderManager() {
1551 if (!prerender::PrerenderManager::IsPrerenderingPossible()) 1551 if (!prerender::PrerenderManager::IsPrerenderingPossible())
1552 return NULL; 1552 return NULL;
1553 if (!prerender_manager_.get()) 1553 if (!prerender_manager_.get())
1554 prerender_manager_.reset(new prerender::PrerenderManager(this)); 1554 prerender_manager_.reset(new prerender::PrerenderManager(this));
1555 return prerender_manager_.get(); 1555 return prerender_manager_.get();
1556 } 1556 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698