application_info.h 793 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef BRIGHTRAY_COMMON_APPLICATION_INFO_H_
  2. #define BRIGHTRAY_COMMON_APPLICATION_INFO_H_
  3. #if defined(OS_WIN)
  4. #include "base/strings/string16.h"
  5. #include "brightray/browser/win/scoped_hstring.h"
  6. #endif
  7. #include <string>
  8. namespace brightray {
  9. void OverrideApplicationName(const std::string& name);
  10. std::string GetOverriddenApplicationName();
  11. void OverrideApplicationVersion(const std::string& version);
  12. std::string GetOverriddenApplicationVersion();
  13. std::string GetApplicationName();
  14. std::string GetApplicationVersion();
  15. #if defined(OS_WIN)
  16. PCWSTR GetRawAppUserModelID();
  17. bool GetAppUserModelID(ScopedHString* app_id);
  18. void SetAppUserModelID(const base::string16& name);
  19. bool IsRunningInDesktopBridge();
  20. #endif
  21. } // namespace brightray
  22. #endif // BRIGHTRAY_COMMON_APPLICATION_INFO_H_