Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: ios/web_view/internal/web_view_web_main_parts.h

Issue 2894483003: Initialize ios/web_view translate with a system-wide URLRequestContext. (Closed)
Patch Set: Cleanup. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698