| 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_util.h" | 10 #include "base/file_util.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 } | 298 } |
| 299 | 299 |
| 300 net::URLRequestContextGetter* | 300 net::URLRequestContextGetter* |
| 301 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( | 301 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( |
| 302 const base::FilePath& partition_path, | 302 const base::FilePath& partition_path, |
| 303 bool in_memory) { | 303 bool in_memory) { |
| 304 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory); | 304 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory); |
| 305 } | 305 } |
| 306 | 306 |
| 307 net::URLRequestContextGetter* | 307 net::URLRequestContextGetter* |
| 308 OffTheRecordProfileImpl::GetRequestContextForExtensions() { | |
| 309 return io_data_.GetExtensionsRequestContextGetter(); | |
| 310 } | |
| 311 | |
| 312 net::URLRequestContextGetter* | |
| 313 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( | 308 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( |
| 314 const base::FilePath& partition_path, | 309 const base::FilePath& partition_path, |
| 315 bool in_memory, | 310 bool in_memory, |
| 316 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 311 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 317 blob_protocol_handler, | 312 blob_protocol_handler, |
| 318 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 313 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 319 file_system_protocol_handler, | 314 file_system_protocol_handler, |
| 320 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 315 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 321 developer_protocol_handler, | 316 developer_protocol_handler, |
| 322 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 317 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 void OffTheRecordProfileImpl::OnZoomLevelChanged(const std::string& host) { | 492 void OffTheRecordProfileImpl::OnZoomLevelChanged(const std::string& host) { |
| 498 if (host.empty()) | 493 if (host.empty()) |
| 499 return; | 494 return; |
| 500 | 495 |
| 501 HostZoomMap* host_zoom_map = HostZoomMap::GetForBrowserContext(this); | 496 HostZoomMap* host_zoom_map = HostZoomMap::GetForBrowserContext(this); |
| 502 HostZoomMap* parent_host_zoom_map = | 497 HostZoomMap* parent_host_zoom_map = |
| 503 HostZoomMap::GetForBrowserContext(profile_); | 498 HostZoomMap::GetForBrowserContext(profile_); |
| 504 double level = parent_host_zoom_map->GetZoomLevel(host); | 499 double level = parent_host_zoom_map->GetZoomLevel(host); |
| 505 host_zoom_map->SetZoomLevel(host, level); | 500 host_zoom_map->SetZoomLevel(host, level); |
| 506 } | 501 } |
| OLD | NEW |