OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_i
o_data.h" | 5 #include "ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_i
o_data.h" |
6 | 6 |
7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 208 |
209 main_context->set_http_transaction_factory(main_http_factory_.get()); | 209 main_context->set_http_transaction_factory(main_http_factory_.get()); |
210 | 210 |
211 std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory( | 211 std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory( |
212 new net::URLRequestJobFactoryImpl()); | 212 new net::URLRequestJobFactoryImpl()); |
213 | 213 |
214 InstallProtocolHandlers(main_job_factory.get(), protocol_handlers); | 214 InstallProtocolHandlers(main_job_factory.get(), protocol_handlers); |
215 main_job_factory_ = SetUpJobFactoryDefaults(std::move(main_job_factory), | 215 main_job_factory_ = SetUpJobFactoryDefaults(std::move(main_job_factory), |
216 main_context->network_delegate()); | 216 main_context->network_delegate()); |
217 main_context->set_job_factory(main_job_factory_.get()); | 217 main_context->set_job_factory(main_job_factory_.get()); |
218 | |
219 // Setup SDCH for this profile. | |
220 sdch_manager_.reset(new net::SdchManager); | |
221 sdch_policy_.reset(new net::SdchOwner(sdch_manager_.get(), main_context)); | |
222 main_context->set_sdch_manager(sdch_manager_.get()); | |
223 } | 218 } |
224 | 219 |
225 ChromeBrowserStateIOData::AppRequestContext* | 220 ChromeBrowserStateIOData::AppRequestContext* |
226 OffTheRecordChromeBrowserStateIOData::InitializeAppRequestContext( | 221 OffTheRecordChromeBrowserStateIOData::InitializeAppRequestContext( |
227 net::URLRequestContext* main_context) const { | 222 net::URLRequestContext* main_context) const { |
228 NOTREACHED(); | 223 NOTREACHED(); |
229 return nullptr; | 224 return nullptr; |
230 } | 225 } |
231 | 226 |
232 ChromeBrowserStateIOData::AppRequestContext* | 227 ChromeBrowserStateIOData::AppRequestContext* |
233 OffTheRecordChromeBrowserStateIOData::AcquireIsolatedAppRequestContext( | 228 OffTheRecordChromeBrowserStateIOData::AcquireIsolatedAppRequestContext( |
234 net::URLRequestContext* main_context) const { | 229 net::URLRequestContext* main_context) const { |
235 NOTREACHED(); | 230 NOTREACHED(); |
236 return nullptr; | 231 return nullptr; |
237 } | 232 } |
OLD | NEW |