Chromium Code Reviews| Index: chrome/browser/profiles/off_the_record_profile_impl.cc |
| diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc |
| index 6beec983d8e7ca9047ae9f03a66fd07b5c3bbcc5..9f21c0f7258cc0766d295b3823db438ca1032700 100644 |
| --- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
| +++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
| @@ -255,6 +255,17 @@ net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { |
| return io_data_.GetMainRequestContextGetter(); |
| } |
| +net::URLRequestContextGetter* OffTheRecordProfileImpl::CreateRequestContext( |
|
mmenke
2012/12/20 16:55:06
Definition order should match the header (Same goe
|
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| + blob_protocol_handler, |
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| + file_system_protocol_handler, |
| + scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| + developer_protocol_handler) { |
| + return io_data_.CreateMainRequestContextGetter(blob_protocol_handler.Pass(), |
| + file_system_protocol_handler.Pass(), developer_protocol_handler.Pass()); |
| +} |
| + |
| net::URLRequestContextGetter* |
| OffTheRecordProfileImpl::GetRequestContextForRenderProcess( |
| int renderer_child_id) { |
| @@ -280,7 +291,7 @@ net::URLRequestContextGetter* |
| OffTheRecordProfileImpl::GetMediaRequestContextForStoragePartition( |
| const FilePath& partition_path, |
| bool in_memory) { |
| - return GetRequestContextForStoragePartition(partition_path, in_memory); |
| + return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory); |
| } |
| net::URLRequestContextGetter* |
| @@ -289,10 +300,18 @@ net::URLRequestContextGetter* |
| } |
| net::URLRequestContextGetter* |
| - OffTheRecordProfileImpl::GetRequestContextForStoragePartition( |
| + OffTheRecordProfileImpl::CreateRequestContextForStoragePartition( |
| const FilePath& partition_path, |
| - bool in_memory) { |
| - return io_data_.GetIsolatedAppRequestContextGetter(partition_path, in_memory); |
| + bool in_memory, |
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| + blob_protocol_handler, |
| + scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| + file_system_protocol_handler, |
| + scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| + developer_protocol_handler) { |
| + return io_data_.CreateIsolatedAppRequestContextGetter( |
| + partition_path, in_memory, blob_protocol_handler.Pass(), |
| + file_system_protocol_handler.Pass(), developer_protocol_handler.Pass()); |
| } |
| content::ResourceContext* OffTheRecordProfileImpl::GetResourceContext() { |