OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ |
| 6 #define IOS_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #import <memory> |
| 11 |
| 12 namespace web { |
| 13 class RequestTrackerFactoryImpl; |
| 14 class WebHTTPProtocolHandlerDelegate; |
| 15 } // namespace web |
| 16 |
| 17 @interface NetworkStackSetup : NSObject |
| 18 |
| 19 // Sets up the network stack: protocol handler and cache. |
| 20 // TODO(crbug.com/585700): Remove the first parameter. |
| 21 + (void)setUpChromeNetworkStack: |
| 22 (std::unique_ptr<web::RequestTrackerFactoryImpl>*) |
| 23 requestTrackerFactory |
| 24 httpProtocolHandlerDelegate: |
| 25 (std::unique_ptr<web::WebHTTPProtocolHandlerDelegate>*) |
| 26 httpProtocolHandlerDelegate; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // IOS_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ |
OLD | NEW |