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.
5 #ifndef IOS_WEB_NET_REQUEST_TRACKER_FACTORY_IMPL_H_
6 #define IOS_WEB_NET_REQUEST_TRACKER_FACTORY_IMPL_H_
10 #include "base/mac/scoped_nsobject.h"
11 #include "ios/net/request_tracker.h"
15 class RequestTrackerFactoryImpl
16 : public net::RequestTracker::RequestTrackerFactory
{
18 explicit RequestTrackerFactoryImpl(const std::string
& application_scheme
);
19 ~RequestTrackerFactoryImpl() override
;
22 // RequestTracker::RequestTrackerFactory implementation
23 bool GetRequestTracker(NSURLRequest
* request
,
24 base::WeakPtr
<net::RequestTracker
>* tracker
) override
;
26 base::scoped_nsobject
<NSString
> application_scheme_
;
31 #endif // IOS_WEB_NET_REQUEST_TRACKER_FACTORY_IMPL_H_