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/deferred_sequenced_task_runner.h" |
10 #include "base/file_util.h" | 11 #include "base/file_util.h" |
11 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/path_service.h" | 14 #include "base/path_service.h" |
14 #include "base/prefs/json_pref_store.h" | 15 #include "base/prefs/json_pref_store.h" |
15 #include "base/string_util.h" | 16 #include "base/string_util.h" |
16 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
18 #include "chrome/browser/background/background_contents_service_factory.h" | 19 #include "chrome/browser/background/background_contents_service_factory.h" |
19 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 190 |
190 base::FilePath OffTheRecordProfileImpl::GetPath() { | 191 base::FilePath OffTheRecordProfileImpl::GetPath() { |
191 return profile_->GetPath(); | 192 return profile_->GetPath(); |
192 } | 193 } |
193 | 194 |
194 scoped_refptr<base::SequencedTaskRunner> | 195 scoped_refptr<base::SequencedTaskRunner> |
195 OffTheRecordProfileImpl::GetIOTaskRunner() { | 196 OffTheRecordProfileImpl::GetIOTaskRunner() { |
196 return profile_->GetIOTaskRunner(); | 197 return profile_->GetIOTaskRunner(); |
197 } | 198 } |
198 | 199 |
| 200 scoped_refptr<base::DeferredSequencedTaskRunner> |
| 201 OffTheRecordProfileImpl::GetBookmarksTaskRunner() { |
| 202 return profile_->GetBookmarksTaskRunner(); |
| 203 } |
| 204 |
199 bool OffTheRecordProfileImpl::IsOffTheRecord() const { | 205 bool OffTheRecordProfileImpl::IsOffTheRecord() const { |
200 return true; | 206 return true; |
201 } | 207 } |
202 | 208 |
203 Profile* OffTheRecordProfileImpl::GetOffTheRecordProfile() { | 209 Profile* OffTheRecordProfileImpl::GetOffTheRecordProfile() { |
204 return this; | 210 return this; |
205 } | 211 } |
206 | 212 |
207 void OffTheRecordProfileImpl::DestroyOffTheRecordProfile() { | 213 void OffTheRecordProfileImpl::DestroyOffTheRecordProfile() { |
208 // Suicide is bad! | 214 // Suicide is bad! |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 case HostZoomMap::ZOOM_CHANGED_FOR_HOST: | 479 case HostZoomMap::ZOOM_CHANGED_FOR_HOST: |
474 host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level); | 480 host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level); |
475 return; | 481 return; |
476 case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST: | 482 case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST: |
477 host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme, | 483 host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme, |
478 change.host, | 484 change.host, |
479 change.zoom_level); | 485 change.zoom_level); |
480 return; | 486 return; |
481 } | 487 } |
482 } | 488 } |
OLD | NEW |