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

Side by Side Diff: 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 unified diff | Download patch
« no previous file with comments | « services/catalog/public/interfaces/resolver.mojom ('k') | services/catalog/store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_CATALOG_STORE_H_ 5 #ifndef SERVICES_CATALOG_STORE_H_
6 #define MOJO_SERVICES_CATALOG_STORE_H_ 6 #define SERVICES_CATALOG_STORE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 10
11 namespace catalog { 11 namespace catalog {
12 12
13 // Implemented by an object that provides storage for the application catalog 13 // Implemented by an object that provides storage for the application catalog
14 // (e.g. in Chrome, preferences). The Catalog is the canonical owner of the 14 // (e.g. in Chrome, preferences). The Catalog is the canonical owner of the
15 // contents of the store, so no one else must modify its contents. 15 // contents of the store, so no one else must modify its contents.
16 class Store { 16 class Store {
(...skipping 27 matching lines...) Expand all
44 // display name and capabilities. The return value is owned by the caller. 44 // display name and capabilities. The return value is owned by the caller.
45 virtual const base::ListValue* GetStore() = 0; 45 virtual const base::ListValue* GetStore() = 0;
46 46
47 // Write the catalog to the store. Called when the Catalog learns of a newly 47 // Write the catalog to the store. Called when the Catalog learns of a newly
48 // encountered application. 48 // encountered application.
49 virtual void UpdateStore(scoped_ptr<base::ListValue> store) = 0; 49 virtual void UpdateStore(scoped_ptr<base::ListValue> store) = 0;
50 }; 50 };
51 51
52 } // namespace catalog 52 } // namespace catalog
53 53
54 #endif // MOJO_SERVICES_CATALOG_STORE_H_ 54 #endif // SERVICES_CATALOG_STORE_H_
OLDNEW
« no previous file with comments | « services/catalog/public/interfaces/resolver.mojom ('k') | services/catalog/store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698