Chromium Code Reviews| 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" | |
| 9 #include "base/macros.h" | 8 #include "base/macros.h" |
| 10 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
| 11 | 10 |
| 12 @class CRWWKScriptMessageRouter; | 11 @class CRWWKScriptMessageRouter; |
| 13 @class WKWebViewConfiguration; | 12 @class WKWebViewConfiguration; |
| 14 | 13 |
| 15 namespace web { | 14 namespace web { |
| 16 | 15 |
| 17 class BrowserState; | 16 class BrowserState; |
| 18 | 17 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 43 | 42 |
| 44 // Purges config and router objects if they exist. When this method is called | 43 // 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 | 44 // config and config's process pool must not be retained by anyone (this will |
| 46 // be enforced in debug builds). | 45 // be enforced in debug builds). |
| 47 void Purge(); | 46 void Purge(); |
| 48 | 47 |
| 49 private: | 48 private: |
| 50 explicit WKWebViewConfigurationProvider(BrowserState* browser_state); | 49 explicit WKWebViewConfigurationProvider(BrowserState* browser_state); |
| 51 WKWebViewConfigurationProvider() = delete; | 50 WKWebViewConfigurationProvider() = delete; |
| 52 | 51 |
| 53 base::scoped_nsobject<WKWebViewConfiguration> configuration_; | 52 WKWebViewConfiguration* configuration_; |
|
stkhapugin
2017/06/12 12:36:23
ditto - See comment for web_test.h about unannotat
PL
2017/06/14 00:31:11
Understood, thanks! I just reverted this back to h
| |
| 54 base::scoped_nsobject<CRWWKScriptMessageRouter> router_; | 53 CRWWKScriptMessageRouter* router_; |
| 55 BrowserState* browser_state_; | 54 BrowserState* browser_state_; |
| 56 | 55 |
| 57 DISALLOW_COPY_AND_ASSIGN(WKWebViewConfigurationProvider); | 56 DISALLOW_COPY_AND_ASSIGN(WKWebViewConfigurationProvider); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } // namespace web | 59 } // namespace web |
| 61 | 60 |
| 62 #endif // IOS_WEB_WEB_STATE_UI_WK_WEB_VIEW_CONFIGURATION_PROVIDER_H_ | 61 #endif // IOS_WEB_WEB_STATE_UI_WK_WEB_VIEW_CONFIGURATION_PROVIDER_H_ |
| OLD | NEW |