diff options
Diffstat (limited to 'chromium/chrome/browser/apps/foundation/app_service')
6 files changed, 0 insertions, 168 deletions
diff --git a/chromium/chrome/browser/apps/foundation/app_service/BUILD.gn b/chromium/chrome/browser/apps/foundation/app_service/BUILD.gn deleted file mode 100644 index e3a3254d120..00000000000 --- a/chromium/chrome/browser/apps/foundation/app_service/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 2018 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -import("//services/service_manager/public/cpp/service.gni") -import("//services/service_manager/public/service_manifest.gni") - -# TODO(crbug.com/826982): move to chrome/services. -source_set("lib") { - sources = [ - "app_registry/app_registry.cc", - "app_registry/app_registry.h", - "app_service.cc", - "app_service.h", - ] - - deps = [ - "//base", - "//components/pref_registry", - "//components/prefs", - "//mojo/public/cpp/bindings", - "//services/preferences/public/cpp", - "//services/service_manager/public/cpp", - ] - - public_deps = [ - "//chrome/browser/apps/foundation/app_service/public/mojom", - ] -} - -source_set("unit_tests") { - testonly = true - - sources = [ - "app_registry/app_registry_unittest.cc", - ] - - deps = [ - ":lib", - "//components/prefs:test_support", - "//testing/gtest", - ] -} - -service_manifest("manifest") { - name = "apps" - source = "manifest.json" -} diff --git a/chromium/chrome/browser/apps/foundation/app_service/manifest.json b/chromium/chrome/browser/apps/foundation/app_service/manifest.json deleted file mode 100644 index 2e3c728cfba..00000000000 --- a/chromium/chrome/browser/apps/foundation/app_service/manifest.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "apps", - "display_name": "App Service", - "sandbox_type": "none", - "interface_provider_specs": { - "service_manager:connector": { - "provides": { - "app_registry": [ - "apps.mojom.AppRegistry" - ] - }, - "requires": { - "preferences": [ - "pref_client" - ] - } - } - } -} - diff --git a/chromium/chrome/browser/apps/foundation/app_service/public/mojom/BUILD.gn b/chromium/chrome/browser/apps/foundation/app_service/public/mojom/BUILD.gn deleted file mode 100644 index b6fe5500359..00000000000 --- a/chromium/chrome/browser/apps/foundation/app_service/public/mojom/BUILD.gn +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2018 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -import("//mojo/public/tools/bindings/mojom.gni") - -mojom("mojom") { - sources = [ - "app_registry.mojom", - ] - - public_deps = [ - ":constants", - ":types", - "//mojo/public/mojom/base", - ] -} - -mojom("constants") { - sources = [ - "constants.mojom", - ] -} - -mojom("types") { - sources = [ - "types.mojom", - ] -} diff --git a/chromium/chrome/browser/apps/foundation/app_service/public/mojom/app_registry.mojom b/chromium/chrome/browser/apps/foundation/app_service/public/mojom/app_registry.mojom deleted file mode 100644 index b0430ee6afd..00000000000 --- a/chromium/chrome/browser/apps/foundation/app_service/public/mojom/app_registry.mojom +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -module apps.mojom; - -import "chrome/browser/apps/foundation/app_service/public/mojom/types.mojom"; - -// The interface through which clients of the App Service can query for data on -// installed apps. -interface AppRegistry { - // Returns a list of all apps persisted in the registry. - GetApps() => (array<AppInfo> app_infos); - - // Sets the preferred value for the app represented by |app_id| to |state|. - // TODO(crbug.com/826982): mandate that |app_id| must exist in the registry, - // or decide that this method no-ops. - SetAppPreferred(string app_id, AppPreferred state); -}; diff --git a/chromium/chrome/browser/apps/foundation/app_service/public/mojom/constants.mojom b/chromium/chrome/browser/apps/foundation/app_service/public/mojom/constants.mojom deleted file mode 100644 index 388c17b7099..00000000000 --- a/chromium/chrome/browser/apps/foundation/app_service/public/mojom/constants.mojom +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -module apps.mojom; - -const string kServiceName = "apps"; diff --git a/chromium/chrome/browser/apps/foundation/app_service/public/mojom/types.mojom b/chromium/chrome/browser/apps/foundation/app_service/public/mojom/types.mojom deleted file mode 100644 index 8d65f52b1bd..00000000000 --- a/chromium/chrome/browser/apps/foundation/app_service/public/mojom/types.mojom +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -module apps.mojom; - -// Whether an app is preferred by the user, e.g. for capturing links within -// its scope. Multiple preferred apps with overlapping scope may be set, and -// the best choice will be resolved via the most specific scope. -enum AppPreferred { - // No preference currently saved. - kUnknown, - - kPreferred, - - kNotPreferred, -}; - -// The types of apps available in the registry. -enum AppType { - // Used for error scenarios or when the app type has not been set. - kUnknown, - - // An ARC++ Android app. - kArc, - - // A web app. - kWeb, - - // A Linux app. - kCrostini, -}; - -// A struct representing an app. -struct AppInfo { - // The id of the app. For backwards compabitility, this should currently be - // the same as the extension ID that would have been generated for the app. - string id; - - // The type of the app. - AppType type; - - // The app's current preferred state. - AppPreferred preferred; -}; |