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

Unified Diff: ios/chrome/browser/net/net_types.h

Issue 2608103002: Remove ScopedVector from URLRequestInterceptorScopedVector. (Closed)
Patch Set: aw Created 3 years, 12 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/chrome/browser/browser_state/chrome_browser_state_io_data.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/net/net_types.h
diff --git a/ios/chrome/browser/net/net_types.h b/ios/chrome/browser/net/net_types.h
index 7cab4c6d88a6398a99b9ea3a31e79edde1d6d604..da18e8569537efe10a7b9c1b6f13e090ad8d51f5 100644
--- a/ios/chrome/browser/net/net_types.h
+++ b/ios/chrome/browser/net/net_types.h
@@ -6,10 +6,11 @@
#define IOS_CHROME_BROWSER_NET_NET_TYPES_H_
#include <map>
+#include <memory>
#include <string>
+#include <vector>
#include "base/memory/linked_ptr.h"
-#include "base/memory/scoped_vector.h"
#include "net/url_request/url_request_job_factory.h"
namespace net {
@@ -18,12 +19,12 @@ class URLRequestInterceptor;
// A mapping from the scheme name to the protocol handler that services its
// content.
-typedef std::map<std::string,
- linked_ptr<net::URLRequestJobFactory::ProtocolHandler>>
- ProtocolHandlerMap;
+using ProtocolHandlerMap =
+ std::map<std::string,
+ linked_ptr<net::URLRequestJobFactory::ProtocolHandler>>;
// A scoped vector of protocol interceptors.
-typedef ScopedVector<net::URLRequestInterceptor>
- URLRequestInterceptorScopedVector;
+using URLRequestInterceptorScopedVector =
+ std::vector<std::unique_ptr<net::URLRequestInterceptor>>;
#endif // IOS_CHROME_BROWSER_NET_NET_TYPES_H_
« no previous file with comments | « ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698