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