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

Side by Side 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: Respond to comments. 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_VIEW_INTERNAL_APP_WEB_VIEW_IO_THREAD_H_
6 #define IOS_WEB_VIEW_INTERNAL_APP_WEB_VIEW_IO_THREAD_H_
7
8 #include <memory>
9
10 #include "ios/components/io_thread/ios_io_thread.h"
11
12 class PrefService;
13
14 namespace net_log {
15 class ChromeNetLog;
16 } // namespace net_log
17
18 namespace ios_web_view {
19
20 // Contains state associated with, initialized and cleaned up on, and
21 // primarily used on, the IO thread.
22 class WebViewIOThread : public io_thread::IOSIOThread {
23 public:
24 WebViewIOThread(PrefService* local_state, net_log::ChromeNetLog* net_log);
25 ~WebViewIOThread() override;
26
27 protected:
28 // io_thread::IOSIOThread overrides
29 std::unique_ptr<net::NetworkDelegate> CreateSystemNetworkDelegate() override;
30 std::string GetChannelString() const override;
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(WebViewIOThread);
34 };
35
36 } // namespace ios_web_view
37
38 #endif // IOS_WEB_VIEW_INTERNAL_APP_WEB_VIEW_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698