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_io_data.h" | 5 #include "chrome/browser/profiles/off_the_record_profile_io_data.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/logging.h" | 9 #include "base/logging.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 scoped_ptr<ProfileIOData::ChromeURLRequestContextGetterVector> | 176 scoped_ptr<ProfileIOData::ChromeURLRequestContextGetterVector> |
177 OffTheRecordProfileIOData::Handle::GetAllContextGetters() { | 177 OffTheRecordProfileIOData::Handle::GetAllContextGetters() { |
178 scoped_ptr<ChromeURLRequestContextGetterVector> context_getters( | 178 scoped_ptr<ChromeURLRequestContextGetterVector> context_getters( |
179 new ChromeURLRequestContextGetterVector()); | 179 new ChromeURLRequestContextGetterVector()); |
180 ChromeURLRequestContextGetterMap::iterator iter = | 180 ChromeURLRequestContextGetterMap::iterator iter = |
181 app_request_context_getter_map_.begin(); | 181 app_request_context_getter_map_.begin(); |
182 for (; iter != app_request_context_getter_map_.end(); ++iter) | 182 for (; iter != app_request_context_getter_map_.end(); ++iter) |
183 context_getters->push_back(iter->second); | 183 context_getters->push_back(iter->second); |
184 | 184 |
185 if (extensions_request_context_getter_) | 185 if (extensions_request_context_getter_.get()) |
186 context_getters->push_back(extensions_request_context_getter_); | 186 context_getters->push_back(extensions_request_context_getter_); |
187 | 187 |
188 if (main_request_context_getter_) | 188 if (main_request_context_getter_.get()) |
189 context_getters->push_back(main_request_context_getter_); | 189 context_getters->push_back(main_request_context_getter_); |
190 | 190 |
191 return context_getters.Pass(); | 191 return context_getters.Pass(); |
192 } | 192 } |
193 | 193 |
194 OffTheRecordProfileIOData::OffTheRecordProfileIOData( | 194 OffTheRecordProfileIOData::OffTheRecordProfileIOData( |
195 Profile::ProfileType profile_type) | 195 Profile::ProfileType profile_type) |
196 : ProfileIOData(profile_type) {} | 196 : ProfileIOData(profile_type) {} |
197 | 197 |
198 OffTheRecordProfileIOData::~OffTheRecordProfileIOData() { | 198 OffTheRecordProfileIOData::~OffTheRecordProfileIOData() { |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 return app_request_context; | 417 return app_request_context; |
418 } | 418 } |
419 | 419 |
420 net::URLRequestContext* | 420 net::URLRequestContext* |
421 OffTheRecordProfileIOData::AcquireIsolatedMediaRequestContext( | 421 OffTheRecordProfileIOData::AcquireIsolatedMediaRequestContext( |
422 net::URLRequestContext* app_context, | 422 net::URLRequestContext* app_context, |
423 const StoragePartitionDescriptor& partition_descriptor) const { | 423 const StoragePartitionDescriptor& partition_descriptor) const { |
424 NOTREACHED(); | 424 NOTREACHED(); |
425 return NULL; | 425 return NULL; |
426 } | 426 } |
OLD | NEW |