| 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_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ | 5 #ifndef IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ |
| 6 #define IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ | 6 #define IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ |
| 7 | 7 |
| 8 #include "ios/web/interstitials/web_interstitial_impl.h" | 8 #import "ios/web/interstitials/web_interstitial_impl.h" |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/ios/weak_nsobject.h" | 12 #import "base/ios/weak_nsobject.h" |
| 13 #include "base/mac/scoped_nsobject.h" | 13 #import "base/mac/scoped_nsobject.h" |
| 14 | 14 |
| 15 namespace web { | 15 namespace web { |
| 16 | 16 |
| 17 class NativeWebInterstitialDelegate; | 17 class NativeWebInterstitialDelegate; |
| 18 | 18 |
| 19 // A concrete subclass of WebInterstitialImpl that is used to display | 19 // A concrete subclass of WebInterstitialImpl that is used to display |
| 20 // interstitials created via native views. | 20 // interstitials created via native views. |
| 21 class NativeWebInterstitialImpl : public WebInterstitialImpl { | 21 class NativeWebInterstitialImpl : public WebInterstitialImpl { |
| 22 public: | 22 public: |
| 23 NativeWebInterstitialImpl( | 23 NativeWebInterstitialImpl( |
| (...skipping 16 matching lines...) Expand all Loading... |
| 40 private: | 40 private: |
| 41 // The native interstitial delegate. | 41 // The native interstitial delegate. |
| 42 std::unique_ptr<NativeWebInterstitialDelegate> delegate_; | 42 std::unique_ptr<NativeWebInterstitialDelegate> delegate_; |
| 43 // The transient content view containing interstitial content. | 43 // The transient content view containing interstitial content. |
| 44 base::scoped_nsobject<CRWContentView> content_view_; | 44 base::scoped_nsobject<CRWContentView> content_view_; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace web | 47 } // namespace web |
| 48 | 48 |
| 49 #endif // IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ | 49 #endif // IOS_WEB_INTERSTITIALS_NATIVE_WEB_INTERSTITIAL_IMPL_H_ |
| OLD | NEW |