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