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> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/basictypes.h" | |
10 #include "base/bind.h" | 11 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 13 #include "base/callback.h" |
13 #include "base/command_line.h" | 14 #include "base/command_line.h" |
14 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
15 #include "base/debug/alias.h" | 16 #include "base/debug/alias.h" |
16 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/macros.h" |
17 #include "base/path_service.h" | 19 #include "base/path_service.h" |
18 #include "base/prefs/pref_service.h" | 20 #include "base/prefs/pref_service.h" |
19 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
20 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
21 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
22 #include "base/thread_task_runner_handle.h" | 24 #include "base/thread_task_runner_handle.h" |
23 #include "base/threading/sequenced_worker_pool.h" | 25 #include "base/threading/sequenced_worker_pool.h" |
24 #include "components/about_handler/about_protocol_handler.h" | 26 #include "components/about_handler/about_protocol_handler.h" |
25 #include "components/content_settings/core/browser/content_settings_provider.h" | 27 #include "components/content_settings/core/browser/content_settings_provider.h" |
26 #include "components/content_settings/core/browser/cookie_settings.h" | 28 #include "components/content_settings/core/browser/cookie_settings.h" |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 return scoped_ptr<net::HttpCache>( | 481 return scoped_ptr<net::HttpCache>( |
480 new net::HttpCache(session, main_backend.Pass(), true)); | 482 new net::HttpCache(session, main_backend.Pass(), true)); |
481 } | 483 } |
482 | 484 |
483 scoped_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( | 485 scoped_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( |
484 net::HttpNetworkSession* shared_session, | 486 net::HttpNetworkSession* shared_session, |
485 scoped_ptr<net::HttpCache::BackendFactory> backend) const { | 487 scoped_ptr<net::HttpCache::BackendFactory> backend) const { |
486 return scoped_ptr<net::HttpCache>( | 488 return scoped_ptr<net::HttpCache>( |
487 new net::HttpCache(shared_session, backend.Pass(), true)); | 489 new net::HttpCache(shared_session, backend.Pass(), true)); |
488 } | 490 } |
OLD | NEW |