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

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: Remove unneeded deps. 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 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/io_thread.h"
11
12 class PrefService;
13
14 namespace net_log {
15 class ChromeNetLog;
16 } // namespace net_log
17
18 // Contains state associated with, initialized and cleaned up on, and
19 // primarily used on, the IO thread.
20 class WebViewIOThread : public io_thread::IOThread {
21 public:
22 WebViewIOThread(PrefService* local_state, net_log::ChromeNetLog* net_log);
23 ~WebViewIOThread() override;
24
25 protected:
26 // The "system" NetworkDelegate, used for BrowserState-agnostic network
27 // events.
28 std::unique_ptr<net::NetworkDelegate> GetSystemNetworkDelegate() override;
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(WebViewIOThread);
32 };
33
34 #endif // IOS_WEB_VIEW_INTERNAL_APP_WEB_VIEW_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698