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

Unified 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: Respond to comments. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ios/web_view/internal/web_view_web_main_parts.h
diff --git a/ios/web_view/internal/web_view_web_main_parts.h b/ios/web_view/internal/web_view_web_main_parts.h
index 10f02796fb6fad5b8a0bfc709ff76e3faa4a94a8..51a40fa99ef91808425abc2b1302fef9b9f2989f 100644
--- a/ios/web_view/internal/web_view_web_main_parts.h
+++ b/ios/web_view/internal/web_view_web_main_parts.h
@@ -7,20 +7,35 @@
#include <memory>
+#include "base/macros.h"
#include "ios/web/public/app/web_main_parts.h"
-@protocol CWVDelegate;
+namespace base {
+class CommandLine;
+}
namespace ios_web_view {
+class ApplicationContextImpl;
+
// WebView implementation of WebMainParts.
class WebViewWebMainParts : public web::WebMainParts {
public:
- WebViewWebMainParts();
+ explicit WebViewWebMainParts(const base::CommandLine& parsed_command_line);
~WebViewWebMainParts() override;
- // WebMainParts implementation.
- void PreMainMessageLoopRun() override;
+ private:
+ // web::WebMainParts implementation.
+ void PreMainMessageLoopStart() override;
+ void PreCreateThreads() override;
+ void PostMainMessageLoopRun() override;
+ void PostDestroyThreads() override;
+
+ const base::CommandLine& parsed_command_line_;
+
+ std::unique_ptr<ApplicationContextImpl> application_context_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebViewWebMainParts);
};
} // namespace ios_web_view

Powered by Google App Engine
This is Rietveld 408576698