| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ | 5 #ifndef IOS_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ |
| 6 #define IOS_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ | 6 #define IOS_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #import <memory> | 10 #import <memory> |
| 11 | 11 |
| 12 namespace web { | 12 namespace web { |
| 13 class RequestTrackerFactoryImpl; | 13 class RequestTrackerFactoryImpl; |
| 14 class WebHTTPProtocolHandlerDelegate; | |
| 15 } // namespace web | 14 } // namespace web |
| 16 | 15 |
| 17 @interface NetworkStackSetup : NSObject | 16 @interface NetworkStackSetup : NSObject |
| 18 | 17 |
| 19 // Sets up the network stack: protocol handler and cache. | 18 // Sets up the network stack: protocol handler and cache. |
| 20 // TODO(crbug.com/585700): Remove the first parameter. | 19 // TODO(crbug.com/585700): Remove the return value. |
| 21 + (void)setUpChromeNetworkStack: | 20 + (std::unique_ptr<web::RequestTrackerFactoryImpl>)setUpChromeNetworkStack; |
| 22 (std::unique_ptr<web::RequestTrackerFactoryImpl>*) | |
| 23 requestTrackerFactory | |
| 24 httpProtocolHandlerDelegate: | |
| 25 (std::unique_ptr<web::WebHTTPProtocolHandlerDelegate>*) | |
| 26 httpProtocolHandlerDelegate; | |
| 27 | 21 |
| 28 @end | 22 @end |
| 29 | 23 |
| 30 #endif // IOS_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ | 24 #endif // IOS_CHROME_APP_STARTUP_NETWORK_STACK_SETUP_H_ |
| OLD | NEW |