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

Unified Diff: net/dns/mdns_client.h

Issue 1475553002: Remove ScopedVector from CreateSockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove {} Created 5 years 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 | « chrome/utility/local_discovery/service_discovery_message_handler.cc ('k') | net/dns/mdns_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mdns_client.h
diff --git a/net/dns/mdns_client.h b/net/dns/mdns_client.h
index 1c75b0465137f1828dea7651ec1d78a48ccbb66e..42da7e0e4594f30177394ddbcaa77a568934fd83 100644
--- a/net/dns/mdns_client.h
+++ b/net/dns/mdns_client.h
@@ -9,14 +9,12 @@
#include <vector>
#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
#include "net/base/ip_endpoint.h"
#include "net/dns/dns_query.h"
#include "net/dns/dns_response.h"
#include "net/dns/record_parsed.h"
-template <typename T>
-class ScopedVector;
-
namespace net {
class DatagramServerSocket;
@@ -131,7 +129,8 @@ class NET_EXPORT MDnsListener {
class NET_EXPORT MDnsSocketFactory {
public:
virtual ~MDnsSocketFactory() {}
- virtual void CreateSockets(ScopedVector<DatagramServerSocket>* sockets) = 0;
+ virtual void CreateSockets(
+ std::vector<scoped_ptr<DatagramServerSocket>>* sockets) = 0;
static scoped_ptr<MDnsSocketFactory> CreateDefault();
};
« no previous file with comments | « chrome/utility/local_discovery/service_discovery_message_handler.cc ('k') | net/dns/mdns_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698