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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 std::string OffTheRecordProfileImpl::GetProfileName() { | 184 std::string OffTheRecordProfileImpl::GetProfileName() { |
185 // Incognito profile should not return the profile name. | 185 // Incognito profile should not return the profile name. |
186 return std::string(); | 186 return std::string(); |
187 } | 187 } |
188 | 188 |
189 FilePath OffTheRecordProfileImpl::GetPath() { | 189 FilePath OffTheRecordProfileImpl::GetPath() { |
190 return profile_->GetPath(); | 190 return profile_->GetPath(); |
191 } | 191 } |
192 | 192 |
| 193 scoped_refptr<base::SequencedTaskRunner> |
| 194 OffTheRecordProfileImpl::GetIOTaskRunner() { |
| 195 return profile_->GetIOTaskRunner(); |
| 196 } |
| 197 |
193 bool OffTheRecordProfileImpl::IsOffTheRecord() const { | 198 bool OffTheRecordProfileImpl::IsOffTheRecord() const { |
194 return true; | 199 return true; |
195 } | 200 } |
196 | 201 |
197 Profile* OffTheRecordProfileImpl::GetOffTheRecordProfile() { | 202 Profile* OffTheRecordProfileImpl::GetOffTheRecordProfile() { |
198 return this; | 203 return this; |
199 } | 204 } |
200 | 205 |
201 void OffTheRecordProfileImpl::DestroyOffTheRecordProfile() { | 206 void OffTheRecordProfileImpl::DestroyOffTheRecordProfile() { |
202 // Suicide is bad! | 207 // Suicide is bad! |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 if (!profile) | 483 if (!profile) |
479 profile = new OffTheRecordProfileImpl(this); | 484 profile = new OffTheRecordProfileImpl(this); |
480 profile->Init(); | 485 profile->Init(); |
481 return profile; | 486 return profile; |
482 } | 487 } |
483 | 488 |
484 base::Callback<ChromeURLDataManagerBackend*(void)> | 489 base::Callback<ChromeURLDataManagerBackend*(void)> |
485 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 490 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
486 return io_data_.GetChromeURLDataManagerBackendGetter(); | 491 return io_data_.GetChromeURLDataManagerBackendGetter(); |
487 } | 492 } |
OLD | NEW |