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/web/public/web_view_creation_util.h" | 5 #include "ios/web/public/web_view_creation_util.h" |
6 | 6 |
7 #include <Foundation/Foundation.h> | 7 #include <Foundation/Foundation.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
8 #include <sys/sysctl.h> | 10 #include <sys/sysctl.h> |
9 | 11 |
10 #include "base/ios/ios_util.h" | 12 #include "base/ios/ios_util.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #import "ios/web/public/browsing_data_partition.h" | 14 #import "ios/web/public/browsing_data_partition.h" |
13 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" | 15 #import "ios/web/web_state/ui/wk_web_view_configuration_provider.h" |
14 #import "ios/web/web_state/web_view_internal_creation_util.h" | 16 #import "ios/web/web_state/web_view_internal_creation_util.h" |
15 | 17 |
16 namespace web { | 18 namespace web { |
17 | 19 |
(...skipping 29 matching lines...) Expand all Loading... |
47 WKWebView* CreateWKWebView(CGRect frame, BrowserState* browser_state) { | 49 WKWebView* CreateWKWebView(CGRect frame, BrowserState* browser_state) { |
48 DCHECK(browser_state); | 50 DCHECK(browser_state); |
49 | 51 |
50 WKWebViewConfigurationProvider& config_provider = | 52 WKWebViewConfigurationProvider& config_provider = |
51 WKWebViewConfigurationProvider::FromBrowserState(browser_state); | 53 WKWebViewConfigurationProvider::FromBrowserState(browser_state); |
52 return CreateWKWebView(frame, config_provider.GetWebViewConfiguration(), | 54 return CreateWKWebView(frame, config_provider.GetWebViewConfiguration(), |
53 browser_state); | 55 browser_state); |
54 } | 56 } |
55 | 57 |
56 } // namespace web | 58 } // namespace web |
OLD | NEW |