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

Side by Side Diff: services/catalog/manifest_provider.h

Issue 2346803004: Revert of Enforce capability spec renderer <--> browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 | « content/test/BUILD.gn ('k') | services/catalog/reader.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 SERVICES_CATALOG_MANIFEST_PROVIDER_H_ 5 #ifndef SERVICES_CATALOG_MANIFEST_PROVIDER_H_
6 #define SERVICES_CATALOG_MANIFEST_PROVIDER_H_ 6 #define SERVICES_CATALOG_MANIFEST_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace base { 10 #include "base/strings/string_piece.h"
11 class Value;
12 }
13 11
14 namespace catalog { 12 namespace catalog {
15 13
16 // An interface which can be implemented by a catalog embedder to override 14 // An interface which can be implemented by a catalog embedder to override
17 // manifest fetching behavior. 15 // manifest fetching behavior.
18 class ManifestProvider { 16 class ManifestProvider {
19 public: 17 public:
20 virtual ~ManifestProvider() {} 18 virtual ~ManifestProvider() {}
21 19
22 // Retrieves the raw contents of the manifest for application named |name|. 20 // Retrieves the raw contents of the manifest for application named |name|.
23 // Returns true if |name| is known and |*manifest_contents| is populated. 21 // Returns true if |name| is known and |*manifest_contents| is populated.
24 // returns false otherwise. 22 // returns false otherwise.
25 virtual std::unique_ptr<base::Value> GetManifest(const std::string& name) = 0; 23 virtual bool GetApplicationManifest(const base::StringPiece& name,
24 std::string* manifest_contents) = 0;
26 }; 25 };
27 26
28 } // namespace catalog 27 } // namespace catalog
29 28
30 #endif // SERVICES_CATALOG_MANIFEST_PROVIDER_H_ 29 #endif // SERVICES_CATALOG_MANIFEST_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | services/catalog/reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698