assistant: Handle back event in web container

This patch updates the back button visibility for Assistant web
container.

Bug: b/141268413
Test: manual
Change-Id: I2dfd3209e4954e04295340d48f05516bde37d09a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1873147
Commit-Queue: Tao Wu <[email protected]>
Reviewed-by: Ken Rockot <[email protected]>
Reviewed-by: Xiaohui Chen <[email protected]>
Reviewed-by: Sam McNally <[email protected]>
Reviewed-by: Camille Lamy <[email protected]>
Reviewed-by: Xiyuan Xia <[email protected]>
Cr-Commit-Position: refs/heads/master@{#712852}
diff --git a/ash/assistant/assistant_web_view_delegate_impl.h b/ash/assistant/assistant_web_view_delegate_impl.h
new file mode 100644
index 0000000..6dd168c
--- /dev/null
+++ b/ash/assistant/assistant_web_view_delegate_impl.h
@@ -0,0 +1,28 @@
+// Copyright 2019 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 ASH_ASSISTANT_ASSISTANT_WEB_VIEW_DELEGATE_IMPL_H_
+#define ASH_ASSISTANT_ASSISTANT_WEB_VIEW_DELEGATE_IMPL_H_
+
+#include "ash/assistant/ui/assistant_web_view_delegate.h"
+#include "base/macros.h"
+
+namespace ash {
+
+class AssistantWebViewDelegateImpl : public AssistantWebViewDelegate {
+ public:
+  AssistantWebViewDelegateImpl();
+  ~AssistantWebViewDelegateImpl() override;
+
+  // AssistantWebViewDelegate:
+  void UpdateBackButtonVisibility(views::Widget* widget,
+                                  bool visibility) override;
+
+ private:
+  DISALLOW_COPY_AND_ASSIGN(AssistantWebViewDelegateImpl);
+};
+
+}  // namespace ash
+
+#endif  // ASH_ASSISTANT_ASSISTANT_WEB_VIEW_DELEGATE_IMPL_H_