| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 WebFactoryImpl_h | 5 #ifndef WebFactoryImpl_h |
| 6 #define WebFactoryImpl_h | 6 #define WebFactoryImpl_h |
| 7 | 7 |
| 8 #include "core/exported/WebFactory.h" | 8 #include "core/exported/WebFactory.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class WebFactoryImpl : public WebFactory { | 12 class WebFactoryImpl : public WebFactory { |
| 13 public: | 13 public: |
| 14 WebFactoryImpl() {} | 14 WebFactoryImpl() {} |
| 15 ~WebFactoryImpl() {} | 15 ~WebFactoryImpl() {} |
| 16 | 16 |
| 17 // Sets WebFactory to have a new instance of WebFactoryImpl. |
| 18 static void Initialize(); |
| 19 |
| 17 ChromeClient* CreateChromeClient(WebViewBase*) const override; | 20 ChromeClient* CreateChromeClient(WebViewBase*) const override; |
| 18 WebViewBase* CreateWebViewBase(WebViewClient*, | 21 WebViewBase* CreateWebViewBase(WebViewClient*, |
| 19 WebPageVisibilityState) const override; | 22 WebPageVisibilityState) const override; |
| 20 }; | 23 }; |
| 21 | 24 |
| 22 } // namespace blink | 25 } // namespace blink |
| 23 | 26 |
| 24 #endif | 27 #endif |
| OLD | NEW |