browser_version.mojom 1.2 KB

123456789101112131415161718192021222324252627282930
  1. // Copyright 2021 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. module crosapi.mojom;
  5. // Interface for browser version observers. Implemented by lacros-chrome.
  6. // Used by ash-chrome to send browser version updates.
  7. [Stable, Uuid="e2be41cc-1a70-4258-b548-e7b510d73980"]
  8. interface BrowserVersionObserver {
  9. // Called when a browser version change happens.
  10. OnBrowserVersionInstalled@0(string version);
  11. };
  12. // Interface that allows clients to receive update notifications
  13. // when a new browser version is available, such as when an update has
  14. // downloaded a new version of the browser. Implemented by ash-chrome.
  15. // Next version: 2
  16. // Next method id: 2
  17. [Stable, Uuid="381c0e9c-110c-4acf-accc-26ace4cc917a"]
  18. interface BrowserVersionService {
  19. // Adds an observer for browser version changes.
  20. AddBrowserVersionObserver@0(
  21. pending_remote<BrowserVersionObserver> observer);
  22. // Returns the latest installed stateful browser version or empty if none is
  23. // installed, regardless of the currently running browser version.
  24. [MinVersion=1]
  25. GetInstalledBrowserVersion@1() => (string version);
  26. };