Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Unified Diff: mojo/services/catalog/store.h

Issue 1878893002: Move //mojo/services tracing & catalog to //services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@63move
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/catalog/public/interfaces/resolver.mojom ('k') | mojo/services/catalog/store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/catalog/store.h
diff --git a/mojo/services/catalog/store.h b/mojo/services/catalog/store.h
deleted file mode 100644
index 4ebdaeab970766b351bf52e2d74920baecbfe23b..0000000000000000000000000000000000000000
--- a/mojo/services/catalog/store.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2016 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.
-
-#ifndef MOJO_SERVICES_CATALOG_STORE_H_
-#define MOJO_SERVICES_CATALOG_STORE_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/values.h"
-
-namespace catalog {
-
-// Implemented by an object that provides storage for the application catalog
-// (e.g. in Chrome, preferences). The Catalog is the canonical owner of the
-// contents of the store, so no one else must modify its contents.
-class Store {
- public:
- // Value is an integer.
- static const char kManifestVersionKey[];
- // Value is a string.
- static const char kNameKey[];
- // Value is a string.
- static const char kQualifierKey[];
- // Value is a string.
- static const char kDisplayNameKey[];
- // Value is a dictionary.
- static const char kCapabilitiesKey[];
- // Value is a dictionary.
- static const char kCapabilities_ProvidedKey[];
- // Value is a dictionary.
- static const char kCapabilities_RequiredKey[];
- // Value is a list.
- static const char kCapabilities_ClassesKey[];
- // Value is a list.
- static const char kCapabilities_InterfacesKey[];
- // Value is a list.
- static const char kApplicationsKey[];
-
- virtual ~Store() {}
-
- // Called during initialization to construct the Catalog's catalog.
- // Returns a serialized list of the apps. Each entry in the returned list
- // corresponds to an app (as a dictionary). Each dictionary has a name,
- // display name and capabilities. The return value is owned by the caller.
- virtual const base::ListValue* GetStore() = 0;
-
- // Write the catalog to the store. Called when the Catalog learns of a newly
- // encountered application.
- virtual void UpdateStore(scoped_ptr<base::ListValue> store) = 0;
-};
-
-} // namespace catalog
-
-#endif // MOJO_SERVICES_CATALOG_STORE_H_
« no previous file with comments | « mojo/services/catalog/public/interfaces/resolver.mojom ('k') | mojo/services/catalog/store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698