Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: ios/web/net/request_tracker_factory_impl.h

Issue 1043243003: Upstream most of ios/web/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove accidentally-added clients Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/net/request_tracker_data_memoizing_store.h ('k') | ios/web/net/request_tracker_factory_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2d0bfc4c8f971b1dcd6fe8caef4e722322304e7e
--- /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);
+ ~RequestTrackerFactoryImpl() override;
+
+ 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_
« no previous file with comments | « ios/web/net/request_tracker_data_memoizing_store.h ('k') | ios/web/net/request_tracker_factory_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698