OLD | NEW |
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/off_the_record_profile_impl.h" | 5 #include "chrome/browser/profiles/off_the_record_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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 OffTheRecordProfileImpl::GetRequestContextForExtensions() { | 288 OffTheRecordProfileImpl::GetRequestContextForExtensions() { |
289 return io_data_.GetExtensionsRequestContextGetter(); | 289 return io_data_.GetExtensionsRequestContextGetter(); |
290 } | 290 } |
291 | 291 |
292 net::URLRequestContextGetter* | 292 net::URLRequestContextGetter* |
293 OffTheRecordProfileImpl::GetRequestContextForIsolatedApp( | 293 OffTheRecordProfileImpl::GetRequestContextForIsolatedApp( |
294 const std::string& app_id) { | 294 const std::string& app_id) { |
295 return io_data_.GetIsolatedAppRequestContextGetter(app_id); | 295 return io_data_.GetIsolatedAppRequestContextGetter(app_id); |
296 } | 296 } |
297 | 297 |
298 content::ResourceContext* OffTheRecordProfileImpl::GetResourceContext() { | 298 content::ResourceContext* OffTheRecordProfileImpl::GetResourceContext( |
| 299 content::SiteInstance* instance) { |
| 300 // TODO(ajwong): Actually do something appropriate here. |
299 return io_data_.GetResourceContext(); | 301 return io_data_.GetResourceContext(); |
300 } | 302 } |
301 | 303 |
302 net::SSLConfigService* OffTheRecordProfileImpl::GetSSLConfigService() { | 304 net::SSLConfigService* OffTheRecordProfileImpl::GetSSLConfigService() { |
303 return profile_->GetSSLConfigService(); | 305 return profile_->GetSSLConfigService(); |
304 } | 306 } |
305 | 307 |
306 HostContentSettingsMap* OffTheRecordProfileImpl::GetHostContentSettingsMap() { | 308 HostContentSettingsMap* OffTheRecordProfileImpl::GetHostContentSettingsMap() { |
307 // Retrieve the host content settings map of the parent profile in order to | 309 // Retrieve the host content settings map of the parent profile in order to |
308 // ensure the preferences have been migrated. | 310 // ensure the preferences have been migrated. |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 if (!profile) | 470 if (!profile) |
469 profile = new OffTheRecordProfileImpl(this); | 471 profile = new OffTheRecordProfileImpl(this); |
470 profile->Init(); | 472 profile->Init(); |
471 return profile; | 473 return profile; |
472 } | 474 } |
473 | 475 |
474 base::Callback<ChromeURLDataManagerBackend*(void)> | 476 base::Callback<ChromeURLDataManagerBackend*(void)> |
475 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 477 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
476 return io_data_.GetChromeURLDataManagerBackendGetter(); | 478 return io_data_.GetChromeURLDataManagerBackendGetter(); |
477 } | 479 } |
OLD | NEW |