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 #ifndef IOS_WEB_WEB_STATE_UI_WK_WEB_VIEW_CONFIGURATION_PROVIDER_H_ | 5 #ifndef IOS_WEB_WEB_STATE_UI_WK_WEB_VIEW_CONFIGURATION_PROVIDER_H_ |
6 #define IOS_WEB_WEB_STATE_UI_WK_WEB_VIEW_CONFIGURATION_PROVIDER_H_ | 6 #define IOS_WEB_WEB_STATE_UI_WK_WEB_VIEW_CONFIGURATION_PROVIDER_H_ |
7 | 7 |
8 #import "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
Eugene But (OOO till 7-30)
2017/06/02 23:18:38
Do we still need this include?
PL
2017/06/05 23:26:18
Done! Nope, thanks!
| |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
11 | 11 |
12 @class CRWWKScriptMessageRouter; | 12 @class CRWWKScriptMessageRouter; |
13 @class WKWebViewConfiguration; | 13 @class WKWebViewConfiguration; |
14 | 14 |
15 namespace web { | 15 namespace web { |
16 | 16 |
17 class BrowserState; | 17 class BrowserState; |
18 | 18 |
(...skipping 24 matching lines...) Expand all Loading... | |
43 | 43 |
44 // Purges config and router objects if they exist. When this method is called | 44 // Purges config and router objects if they exist. When this method is called |
45 // config and config's process pool must not be retained by anyone (this will | 45 // config and config's process pool must not be retained by anyone (this will |
46 // be enforced in debug builds). | 46 // be enforced in debug builds). |
47 void Purge(); | 47 void Purge(); |
48 | 48 |
49 private: | 49 private: |
50 explicit WKWebViewConfigurationProvider(BrowserState* browser_state); | 50 explicit WKWebViewConfigurationProvider(BrowserState* browser_state); |
51 WKWebViewConfigurationProvider() = delete; | 51 WKWebViewConfigurationProvider() = delete; |
52 | 52 |
53 base::scoped_nsobject<WKWebViewConfiguration> configuration_; | 53 WKWebViewConfiguration* configuration_; |
54 base::scoped_nsobject<CRWWKScriptMessageRouter> router_; | 54 CRWWKScriptMessageRouter* router_; |
55 BrowserState* browser_state_; | 55 BrowserState* browser_state_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(WKWebViewConfigurationProvider); | 57 DISALLOW_COPY_AND_ASSIGN(WKWebViewConfigurationProvider); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace web | 60 } // namespace web |
61 | 61 |
62 #endif // IOS_WEB_WEB_STATE_UI_WK_WEB_VIEW_CONFIGURATION_PROVIDER_H_ | 62 #endif // IOS_WEB_WEB_STATE_UI_WK_WEB_VIEW_CONFIGURATION_PROVIDER_H_ |
OLD | NEW |