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_PARTS_H_ | 5 #ifndef IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_PARTS_H_ |
6 #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_PARTS_H_ | 6 #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_PARTS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "ios/web/public/app/web_main_parts.h" | 11 #include "ios/web/public/app/web_main_parts.h" |
11 | 12 |
12 @protocol CWVDelegate; | |
13 | |
14 namespace ios_web_view { | 13 namespace ios_web_view { |
15 | 14 |
16 // WebView implementation of WebMainParts. | 15 // WebView implementation of WebMainParts. |
17 class WebViewWebMainParts : public web::WebMainParts { | 16 class WebViewWebMainParts : public web::WebMainParts { |
18 public: | 17 public: |
19 WebViewWebMainParts(); | 18 WebViewWebMainParts(); |
20 ~WebViewWebMainParts() override; | 19 ~WebViewWebMainParts() override; |
21 | 20 |
22 // WebMainParts implementation. | 21 private: |
| 22 // web::WebMainParts implementation. |
| 23 void PreMainMessageLoopStart() override; |
| 24 void PreCreateThreads() override; |
23 void PreMainMessageLoopRun() override; | 25 void PreMainMessageLoopRun() override; |
| 26 void PostMainMessageLoopRun() override; |
| 27 void PostDestroyThreads() override; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(WebViewWebMainParts); |
24 }; | 30 }; |
25 | 31 |
26 } // namespace ios_web_view | 32 } // namespace ios_web_view |
27 | 33 |
28 #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_PARTS_H_ | 34 #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_PARTS_H_ |
OLD | NEW |