OLD | NEW |
(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_ |
OLD | NEW |