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/chrome_browser_state_io_data.h" | 5 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/debug/alias.h" | 17 #include "base/debug/alias.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/path_service.h" | 21 #include "base/path_service.h" |
| 22 #include "base/single_thread_task_runner.h" |
22 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
23 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
25 #include "base/task_scheduler/post_task.h" | 26 #include "base/task_scheduler/post_task.h" |
26 #include "base/threading/thread_task_runner_handle.h" | 27 #include "base/threading/thread_task_runner_handle.h" |
27 #include "components/about_handler/about_protocol_handler.h" | 28 #include "components/about_handler/about_protocol_handler.h" |
28 #include "components/content_settings/core/browser/content_settings_provider.h" | 29 #include "components/content_settings/core/browser/content_settings_provider.h" |
29 #include "components/content_settings/core/browser/cookie_settings.h" | 30 #include "components/content_settings/core/browser/cookie_settings.h" |
30 #include "components/content_settings/core/browser/host_content_settings_map.h" | 31 #include "components/content_settings/core/browser/host_content_settings_map.h" |
31 #include "components/metrics/metrics_pref_names.h" | 32 #include "components/metrics/metrics_pref_names.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 return std::unique_ptr<net::HttpCache>( | 475 return std::unique_ptr<net::HttpCache>( |
475 new net::HttpCache(session, std::move(main_backend), true)); | 476 new net::HttpCache(session, std::move(main_backend), true)); |
476 } | 477 } |
477 | 478 |
478 std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( | 479 std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( |
479 net::HttpNetworkSession* shared_session, | 480 net::HttpNetworkSession* shared_session, |
480 std::unique_ptr<net::HttpCache::BackendFactory> backend) const { | 481 std::unique_ptr<net::HttpCache::BackendFactory> backend) const { |
481 return std::unique_ptr<net::HttpCache>( | 482 return std::unique_ptr<net::HttpCache>( |
482 new net::HttpCache(shared_session, std::move(backend), true)); | 483 new net::HttpCache(shared_session, std::move(backend), true)); |
483 } | 484 } |
OLD | NEW |