| 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/ios_chrome_io_thread.h" | 5 #include "ios/chrome/browser/ios_chrome_io_thread.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #include "net/ssl/default_channel_id_store.h" | 72 #include "net/ssl/default_channel_id_store.h" |
| 73 #include "net/url_request/data_protocol_handler.h" | 73 #include "net/url_request/data_protocol_handler.h" |
| 74 #include "net/url_request/file_protocol_handler.h" | 74 #include "net/url_request/file_protocol_handler.h" |
| 75 #include "net/url_request/static_http_user_agent_settings.h" | 75 #include "net/url_request/static_http_user_agent_settings.h" |
| 76 #include "net/url_request/url_request_context.h" | 76 #include "net/url_request/url_request_context.h" |
| 77 #include "net/url_request/url_request_context_builder.h" | 77 #include "net/url_request/url_request_context_builder.h" |
| 78 #include "net/url_request/url_request_context_getter.h" | 78 #include "net/url_request/url_request_context_getter.h" |
| 79 #include "net/url_request/url_request_job_factory_impl.h" | 79 #include "net/url_request/url_request_job_factory_impl.h" |
| 80 #include "url/url_constants.h" | 80 #include "url/url_constants.h" |
| 81 | 81 |
| 82 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 83 #error "This file requires ARC support." |
| 84 #endif |
| 85 |
| 82 // The IOSChromeIOThread object must outlive any tasks posted to the IO thread | 86 // The IOSChromeIOThread object must outlive any tasks posted to the IO thread |
| 83 // before the Quit task, so base::Bind() calls are not refcounted. | 87 // before the Quit task, so base::Bind() calls are not refcounted. |
| 84 | 88 |
| 85 namespace { | 89 namespace { |
| 86 | 90 |
| 87 const char kSupportedAuthSchemes[] = "basic,digest,ntlm"; | 91 const char kSupportedAuthSchemes[] = "basic,digest,ntlm"; |
| 88 | 92 |
| 89 // Field trial for network quality estimator. Seeds RTT and downstream | 93 // Field trial for network quality estimator. Seeds RTT and downstream |
| 90 // throughput observations with values that correspond to the connection type | 94 // throughput observations with values that correspond to the connection type |
| 91 // determined by the operating system. | 95 // determined by the operating system. |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 | 567 |
| 564 globals->system_http_network_session.reset( | 568 globals->system_http_network_session.reset( |
| 565 new net::HttpNetworkSession(system_params)); | 569 new net::HttpNetworkSession(system_params)); |
| 566 globals->system_http_transaction_factory.reset( | 570 globals->system_http_transaction_factory.reset( |
| 567 new net::HttpNetworkLayer(globals->system_http_network_session.get())); | 571 new net::HttpNetworkLayer(globals->system_http_network_session.get())); |
| 568 context->set_http_transaction_factory( | 572 context->set_http_transaction_factory( |
| 569 globals->system_http_transaction_factory.get()); | 573 globals->system_http_transaction_factory.get()); |
| 570 | 574 |
| 571 return context; | 575 return context; |
| 572 } | 576 } |
| OLD | NEW |