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

Unified Diff: ios/web_view/internal/app/web_view_io_thread.h

Issue 2894483003: Initialize ios/web_view translate with a system-wide URLRequestContext. (Closed)
Patch Set: Cleanup. 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/app/web_view_io_thread.h
diff --git a/ios/web_view/internal/app/web_view_io_thread.h b/ios/web_view/internal/app/web_view_io_thread.h
new file mode 100644
index 0000000000000000000000000000000000000000..0ffa7d04d4dc265ff43725abe1b8419d59eca797
--- /dev/null
+++ b/ios/web_view/internal/app/web_view_io_thread.h
@@ -0,0 +1,38 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_VIEW_INTERNAL_APP_WEB_VIEW_IO_THREAD_H_
+#define IOS_WEB_VIEW_INTERNAL_APP_WEB_VIEW_IO_THREAD_H_
+
+#include <memory>
+
+#include "ios/components/io_thread/ios_io_thread.h"
+
+class PrefService;
+
+namespace net_log {
+class ChromeNetLog;
+} // namespace net_log
+
+namespace ios_web_view {
+
+// Contains state associated with, initialized and cleaned up on, and
+// primarily used on, the IO thread.
+class WebViewIOThread : public io_thread::IOSIOThread {
+ public:
+ WebViewIOThread(PrefService* local_state, net_log::ChromeNetLog* net_log);
+ ~WebViewIOThread() override;
+
+ protected:
+ // io_thread::IOSIOThread overrides
+ std::unique_ptr<net::NetworkDelegate> CreateSystemNetworkDelegate() override;
+ std::string GetChannelString() const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebViewIOThread);
+};
+
+} // namespace ios_web_view
+
+#endif // IOS_WEB_VIEW_INTERNAL_APP_WEB_VIEW_IO_THREAD_H_

Powered by Google App Engine
This is Rietveld 408576698