Chromium Code Reviews| Index: ios/web/net/request_tracker_factory_impl.h |
| diff --git a/ios/web/net/request_tracker_factory_impl.h b/ios/web/net/request_tracker_factory_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..68e03392a82fcfca27c55ab002653bf33bbb03b9 |
| --- /dev/null |
| +++ b/ios/web/net/request_tracker_factory_impl.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_WEB_NET_REQUEST_TRACKER_FACTORY_IMPL_H_ |
| +#define IOS_WEB_NET_REQUEST_TRACKER_FACTORY_IMPL_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/mac/scoped_nsobject.h" |
| +#include "ios/net/request_tracker.h" |
| + |
| +namespace web { |
| + |
| +class RequestTrackerFactoryImpl |
| + : public net::RequestTracker::RequestTrackerFactory { |
| + public: |
| + explicit RequestTrackerFactoryImpl(const std::string& application_scheme); |
| + virtual ~RequestTrackerFactoryImpl(); |
|
Eugene But (OOO till 7-30)
2015/03/31 20:11:09
override
stuartmorgan
2015/03/31 21:08:13
Done. This revealed a missing virtual destructor o
|
| + |
| + private: |
| + // RequestTracker::RequestTrackerFactory implementation |
| + bool GetRequestTracker(NSURLRequest* request, |
| + base::WeakPtr<net::RequestTracker>* tracker) override; |
| + |
| + base::scoped_nsobject<NSString> application_scheme_; |
| +}; |
| + |
| +} // namespace web |
| + |
| +#endif // IOS_WEB_NET_REQUEST_TRACKER_FACTORY_IMPL_H_ |