arc_app_id_provider.h 658 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2019 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 ASH_PUBLIC_CPP_ARC_APP_ID_PROVIDER_H_
  5. #define ASH_PUBLIC_CPP_ARC_APP_ID_PROVIDER_H_
  6. #include <string>
  7. #include "ash/public/cpp/ash_public_export.h"
  8. namespace ash {
  9. class ASH_PUBLIC_EXPORT ArcAppIdProvider {
  10. public:
  11. static ArcAppIdProvider* Get();
  12. virtual std::string GetAppIdByPackageName(
  13. const std::string& package_name) = 0;
  14. protected:
  15. ArcAppIdProvider();
  16. virtual ~ArcAppIdProvider();
  17. };
  18. } // namespace ash
  19. #endif // ASH_PUBLIC_CPP_ARC_APP_ID_PROVIDER_H_