OLD | NEW |
1 // Copyright (c) 2010 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.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 189 } |
190 | 190 |
191 virtual ChromeAppCacheService* GetAppCacheService() { | 191 virtual ChromeAppCacheService* GetAppCacheService() { |
192 if (!appcache_service_) { | 192 if (!appcache_service_) { |
193 appcache_service_ = new ChromeAppCacheService; | 193 appcache_service_ = new ChromeAppCacheService; |
194 BrowserThread::PostTask( | 194 BrowserThread::PostTask( |
195 BrowserThread::IO, FROM_HERE, | 195 BrowserThread::IO, FROM_HERE, |
196 NewRunnableMethod(appcache_service_.get(), | 196 NewRunnableMethod(appcache_service_.get(), |
197 &ChromeAppCacheService::InitializeOnIOThread, | 197 &ChromeAppCacheService::InitializeOnIOThread, |
198 GetPath(), IsOffTheRecord(), | 198 GetPath(), IsOffTheRecord(), |
199 make_scoped_refptr(GetHostContentSettingsMap()))); | 199 make_scoped_refptr(GetHostContentSettingsMap()), |
| 200 false)); |
200 } | 201 } |
201 return appcache_service_; | 202 return appcache_service_; |
202 } | 203 } |
203 | 204 |
204 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() { | 205 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() { |
205 if (!db_tracker_) { | 206 if (!db_tracker_) { |
206 db_tracker_ = new webkit_database::DatabaseTracker( | 207 db_tracker_ = new webkit_database::DatabaseTracker( |
207 GetPath(), IsOffTheRecord()); | 208 GetPath(), IsOffTheRecord()); |
208 } | 209 } |
209 return db_tracker_; | 210 return db_tracker_; |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 | 672 |
672 // The file_system context for this profile. | 673 // The file_system context for this profile. |
673 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; | 674 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; |
674 | 675 |
675 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 676 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
676 }; | 677 }; |
677 | 678 |
678 Profile* Profile::CreateOffTheRecordProfile() { | 679 Profile* Profile::CreateOffTheRecordProfile() { |
679 return new OffTheRecordProfileImpl(this); | 680 return new OffTheRecordProfileImpl(this); |
680 } | 681 } |
OLD | NEW |