| 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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 272 } |
| 273 | 273 |
| 274 net::URLRequestContextGetter* | 274 net::URLRequestContextGetter* |
| 275 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( | 275 OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( |
| 276 const base::FilePath& partition_path, | 276 const base::FilePath& partition_path, |
| 277 bool in_memory) { | 277 bool in_memory) { |
| 278 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory) | 278 return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory) |
| 279 .get(); | 279 .get(); |
| 280 } | 280 } |
| 281 | 281 |
| 282 void OffTheRecordProfileImpl::RequestMIDISysExPermission( |
| 283 int render_process_id, |
| 284 int render_view_id, |
| 285 const GURL& requesting_frame, |
| 286 const MIDISysExPermissionCallback& callback) { |
| 287 // TODO(toyoshim): Implement. |
| 288 callback.Run(false); |
| 289 } |
| 290 |
| 282 net::URLRequestContextGetter* | 291 net::URLRequestContextGetter* |
| 283 OffTheRecordProfileImpl::GetRequestContextForExtensions() { | 292 OffTheRecordProfileImpl::GetRequestContextForExtensions() { |
| 284 return io_data_.GetExtensionsRequestContextGetter().get(); | 293 return io_data_.GetExtensionsRequestContextGetter().get(); |
| 285 } | 294 } |
| 286 | 295 |
| 287 net::URLRequestContextGetter* | 296 net::URLRequestContextGetter* |
| 288 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( | 297 OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( |
| 289 const base::FilePath& partition_path, | 298 const base::FilePath& partition_path, |
| 290 bool in_memory, | 299 bool in_memory, |
| 291 content::ProtocolHandlerMap* protocol_handlers) { | 300 content::ProtocolHandlerMap* protocol_handlers) { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 case HostZoomMap::ZOOM_CHANGED_FOR_HOST: | 467 case HostZoomMap::ZOOM_CHANGED_FOR_HOST: |
| 459 host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level); | 468 host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level); |
| 460 return; | 469 return; |
| 461 case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST: | 470 case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST: |
| 462 host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme, | 471 host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme, |
| 463 change.host, | 472 change.host, |
| 464 change.zoom_level); | 473 change.zoom_level); |
| 465 return; | 474 return; |
| 466 } | 475 } |
| 467 } | 476 } |
| OLD | NEW |