Move DumpWriter to libnetdutils

resolver related component in libnetd_resolv
needs it to easily print dump log.

Bug: 122564854
Test: built, flashed, booted
      system/netd/tests/runtests.sh pass
      adb shell dumpsys netd, worked fine

Change-Id: Ic97d5f21b738fc3074e9308f4846191e744ed479
diff --git a/server/XfrmController.h b/server/XfrmController.h
index fb60be9..a38bbeb 100644
--- a/server/XfrmController.h
+++ b/server/XfrmController.h
@@ -32,6 +32,7 @@
 
 #include "NetdConstants.h"
 #include "android-base/unique_fd.h"
+#include "netdutils/DumpWriter.h"
 #include "netdutils/Slice.h"
 #include "netdutils/Status.h"
 #include "sysutils/SocketClient.h"
@@ -51,7 +52,6 @@
 // Suggest we avoid the smallest and largest ints
 class XfrmMessage;
 class TransportModeSecurityAssociation;
-class DumpWriter;
 
 class XfrmSocket {
 public:
@@ -259,7 +259,7 @@
 
     static netdutils::Status ipSecRemoveTunnelInterface(const std::string& deviceName);
 
-    void dump(DumpWriter& dw);
+    void dump(netdutils::DumpWriter& dw);
 
     // Some XFRM netlink attributes comprise a header, a struct, and some data
     // after the struct. We wrap all of those in one struct for easier