page_info_client_impl.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_CLIENT_IMPL_H_
  5. #define WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_CLIENT_IMPL_H_
  6. #include "components/page_info/android/page_info_client.h"
  7. #include "components/page_info/page_info_delegate.h"
  8. #include "components/page_info/page_info_ui_delegate.h"
  9. #include <memory>
  10. namespace content {
  11. class WebContents;
  12. }
  13. namespace weblayer {
  14. // WebLayer's implementation of PageInfoClient.
  15. class PageInfoClientImpl : public page_info::PageInfoClient {
  16. public:
  17. static PageInfoClientImpl* GetInstance();
  18. PageInfoClientImpl() = default;
  19. ~PageInfoClientImpl() = default;
  20. // PageInfoClient implementation.
  21. std::unique_ptr<PageInfoDelegate> CreatePageInfoDelegate(
  22. content::WebContents* web_contents) override;
  23. int GetJavaResourceId(int native_resource_id) override;
  24. };
  25. } // namespace weblayer
  26. #endif // WEBLAYER_BROWSER_URL_BAR_PAGE_INFO_CLIENT_IMPL_H_