Make client use binder interface on brillo

TEST=Verified status and update commands
Bug: 25908638

Change-Id: I7994de41001b4e116bffa539f23f1344ab1deae9
diff --git a/update_attempter.h b/update_attempter.h
index 3a2c30d..2401d60 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -28,6 +28,10 @@
 #include <base/time/time.h>
 #include <gtest/gtest_prod.h>  // for FRIEND_TEST
 
+#if USE_BINDER
+#include "update_engine/binder_service.h"
+#endif  // USE_BINDER
+
 #include "debugd/dbus-proxies.h"
 #include "update_engine/chrome_browser_proxy_resolver.h"
 #include "update_engine/client_library/include/update_engine/update_status.h"
@@ -138,6 +142,12 @@
     dbus_adaptor_ = dbus_adaptor;
   }
 
+#if USE_BINDER
+  void set_binder_service(BinderUpdateEngineService* service) {
+    binder_service_ = service;
+  }
+#endif
+
   // This is the internal entry point for going through an
   // update. If the current status is idle invokes Update.
   // This is called by the DBus implementation.
@@ -415,6 +425,12 @@
   // dbus service.
   UpdateEngineAdaptor* dbus_adaptor_ = nullptr;
 
+#if USE_BINDER
+  // If non-null, this UpdateAttempter will send status updates over this
+  // binder interface.
+  BinderUpdateEngineService* binder_service_ = nullptr;
+#endif  // USE_BINDER
+
   // Pointer to the OmahaResponseHandlerAction in the actions_ vector.
   std::shared_ptr<OmahaResponseHandlerAction> response_handler_action_;