| 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 "net/url_request/url_request_context_builder.h" | 5 #include "net/url_request/url_request_context_builder.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/thread_task_runner_handle.h" |
| 13 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 14 #include "base/thread_task_runner_handle.h" | |
| 15 #include "net/base/cert_verifier.h" | 15 #include "net/base/cert_verifier.h" |
| 16 #include "net/base/host_resolver.h" | 16 #include "net/base/host_resolver.h" |
| 17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 18 #include "net/base/network_delegate.h" | 18 #include "net/base/network_delegate.h" |
| 19 #include "net/base/ssl_config_service_defaults.h" | |
| 20 #include "net/base/transport_security_state.h" | |
| 21 #include "net/cookies/cookie_monster.h" | 19 #include "net/cookies/cookie_monster.h" |
| 22 #include "net/ftp/ftp_network_layer.h" | 20 #include "net/ftp/ftp_network_layer.h" |
| 23 #include "net/http/http_auth_handler_factory.h" | 21 #include "net/http/http_auth_handler_factory.h" |
| 24 #include "net/http/http_cache.h" | 22 #include "net/http/http_cache.h" |
| 25 #include "net/http/http_network_layer.h" | 23 #include "net/http/http_network_layer.h" |
| 26 #include "net/http/http_network_session.h" | 24 #include "net/http/http_network_session.h" |
| 27 #include "net/http/http_server_properties_impl.h" | 25 #include "net/http/http_server_properties_impl.h" |
| 28 #include "net/proxy/proxy_service.h" | 26 #include "net/proxy/proxy_service.h" |
| 27 #include "net/ssl/ssl_config_service_defaults.h" |
| 28 #include "net/ssl/transport_security_state.h" |
| 29 #include "net/url_request/static_http_user_agent_settings.h" | 29 #include "net/url_request/static_http_user_agent_settings.h" |
| 30 #include "net/url_request/url_request_context.h" | 30 #include "net/url_request/url_request_context.h" |
| 31 #include "net/url_request/url_request_context_storage.h" | 31 #include "net/url_request/url_request_context_storage.h" |
| 32 | 32 |
| 33 namespace net { | 33 namespace net { |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| 37 class BasicNetworkDelegate : public NetworkDelegate { | 37 class BasicNetworkDelegate : public NetworkDelegate { |
| 38 public: | 38 public: |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 http_transaction_factory = new HttpNetworkLayer(network_session); | 289 http_transaction_factory = new HttpNetworkLayer(network_session); |
| 290 } | 290 } |
| 291 storage->set_http_transaction_factory(http_transaction_factory); | 291 storage->set_http_transaction_factory(http_transaction_factory); |
| 292 | 292 |
| 293 // TODO(willchan): Support sdch. | 293 // TODO(willchan): Support sdch. |
| 294 | 294 |
| 295 return context; | 295 return context; |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace net | 298 } // namespace net |
| OLD | NEW |