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 #ifndef IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ | 5 #ifndef IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ |
6 #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ | 6 #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
| 9 |
9 #include "base/macros.h" | 10 #include "base/macros.h" |
10 #include "ios/web/public/app/web_main_delegate.h" | 11 #include "ios/web/public/app/web_main_delegate.h" |
11 | 12 |
12 @protocol CWVDelegate; | 13 @protocol CWVDelegate; |
13 | 14 |
14 namespace ios_web_view { | 15 namespace ios_web_view { |
15 class WebViewWebClient; | 16 class WebViewWebClient; |
16 | 17 |
17 // WebView implementation of WebMainDelegate. | 18 // WebView implementation of WebMainDelegate. |
18 class WebViewWebMainDelegate : public web::WebMainDelegate { | 19 class WebViewWebMainDelegate : public web::WebMainDelegate { |
(...skipping 10 matching lines...) Expand all Loading... |
29 | 30 |
30 // The content and web clients registered by this object. | 31 // The content and web clients registered by this object. |
31 std::unique_ptr<WebViewWebClient> web_client_; | 32 std::unique_ptr<WebViewWebClient> web_client_; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(WebViewWebMainDelegate); | 34 DISALLOW_COPY_AND_ASSIGN(WebViewWebMainDelegate); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace ios_web_view | 37 } // namespace ios_web_view |
37 | 38 |
38 #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ | 39 #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ |
OLD | NEW |