OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.h" | 5 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "components/prefs/json_pref_store.h" | 12 #include "components/prefs/json_pref_store.h" |
13 #include "components/syncable_prefs/pref_service_syncable.h" | 13 #include "components/syncable_prefs/pref_service_syncable.h" |
14 #include "ios/chrome/browser/chrome_url_constants.h" | 14 #include "ios/chrome/browser/chrome_url_constants.h" |
15 #include "ios/chrome/browser/net/ios_chrome_url_request_context_getter.h" | 15 #include "ios/chrome/browser/net/ios_chrome_url_request_context_getter.h" |
16 #include "ios/chrome/browser/net/net_types.h" | 16 #include "ios/chrome/browser/net/net_types.h" |
17 #include "ios/public/provider/web/web_ui_ios.h" | |
18 #include "ios/web/public/web_state/web_state.h" | 17 #include "ios/web/public/web_state/web_state.h" |
19 #include "ios/web/public/web_thread.h" | 18 #include "ios/web/public/web_thread.h" |
| 19 #include "ios/web/public/webui/web_ui_ios.h" |
20 #include "ios/web/webui/url_data_manager_ios_backend.h" | 20 #include "ios/web/webui/url_data_manager_ios_backend.h" |
21 #include "net/url_request/url_request_interceptor.h" | 21 #include "net/url_request/url_request_interceptor.h" |
22 | 22 |
23 namespace ios { | 23 namespace ios { |
24 | 24 |
25 ChromeBrowserState::ChromeBrowserState() {} | 25 ChromeBrowserState::ChromeBrowserState() {} |
26 | 26 |
27 ChromeBrowserState::~ChromeBrowserState() {} | 27 ChromeBrowserState::~ChromeBrowserState() {} |
28 | 28 |
29 // static | 29 // static |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 web::URLDataManagerIOSBackend::CreateProtocolHandler(this) | 73 web::URLDataManagerIOSBackend::CreateProtocolHandler(this) |
74 .release()); | 74 .release()); |
75 URLRequestInterceptorScopedVector request_interceptors; | 75 URLRequestInterceptorScopedVector request_interceptors; |
76 request_context_getter_ = make_scoped_refptr(CreateRequestContext( | 76 request_context_getter_ = make_scoped_refptr(CreateRequestContext( |
77 &protocol_handlers, std::move(request_interceptors))); | 77 &protocol_handlers, std::move(request_interceptors))); |
78 } | 78 } |
79 return request_context_getter_.get(); | 79 return request_context_getter_.get(); |
80 } | 80 } |
81 | 81 |
82 } // namespace ios | 82 } // namespace ios |
OLD | NEW |