url_bar_controller.h 714 B

123456789101112131415161718192021222324252627
  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_PUBLIC_URL_BAR_CONTROLLER_H_
  5. #define WEBLAYER_PUBLIC_URL_BAR_CONTROLLER_H_
  6. #include <string>
  7. #include "components/security_state/core/security_state.h"
  8. namespace weblayer {
  9. class Browser;
  10. class UrlBarController {
  11. public:
  12. static std::unique_ptr<UrlBarController> Create(Browser* browser);
  13. virtual ~UrlBarController() {}
  14. virtual std::u16string GetUrlForDisplay() = 0;
  15. virtual security_state::SecurityLevel GetConnectionSecurityLevel() = 0;
  16. };
  17. } // namespace weblayer
  18. #endif // WEBLAYER_PUBLIC_URL_BAR_CONTROLLER_H_