OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_NET_REQUEST_TRACKER_FACTORY_IMPL_H_ |
| 6 #define IOS_WEB_NET_REQUEST_TRACKER_FACTORY_IMPL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "ios/net/request_tracker.h" |
| 12 |
| 13 namespace web { |
| 14 |
| 15 class RequestTrackerFactoryImpl |
| 16 : public net::RequestTracker::RequestTrackerFactory { |
| 17 public: |
| 18 explicit RequestTrackerFactoryImpl(const std::string& application_scheme); |
| 19 ~RequestTrackerFactoryImpl() override; |
| 20 |
| 21 private: |
| 22 // RequestTracker::RequestTrackerFactory implementation |
| 23 bool GetRequestTracker(NSURLRequest* request, |
| 24 base::WeakPtr<net::RequestTracker>* tracker) override; |
| 25 |
| 26 base::scoped_nsobject<NSString> application_scheme_; |
| 27 }; |
| 28 |
| 29 } // namespace web |
| 30 |
| 31 #endif // IOS_WEB_NET_REQUEST_TRACKER_FACTORY_IMPL_H_ |
OLD | NEW |