1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_CLIENT_IMPL_H_
6 #define WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_CLIENT_IMPL_H_
7 
8 #include "components/page_info/android/page_info_client.h"
9 #include "components/page_info/page_info_delegate.h"
10 #include "components/page_info/page_info_ui_delegate.h"
11 
12 #include <memory>
13 
14 namespace content {
15 class WebContents;
16 }
17 
18 namespace weblayer {
19 
20 // WebLayer's implementation of PageInfoClient.
21 class PageInfoClientImpl : public page_info::PageInfoClient {
22  public:
23   static PageInfoClientImpl* GetInstance();
24 
25   PageInfoClientImpl() = default;
26   ~PageInfoClientImpl() = default;
27 
28   // PageInfoClient implementation.
29   std::unique_ptr<PageInfoDelegate> CreatePageInfoDelegate(
30       content::WebContents* web_contents) override;
31   int GetJavaResourceId(int native_resource_id) override;
32 };
33 
34 }  // namespace weblayer
35 
36 #endif  // WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_CLIENT_IMPL_H_
37