Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / chrome / common / extensions / manifest_handlers / copresence_manifest.h
blob921b5854d70b65e2412a9b2cbc0078d37f511097
1 // Copyright 2014 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.
5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_COPRESENCE_MANIFEST_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_COPRESENCE_MANIFEST_H_
8 #include <string>
9 #include <vector>
11 #include "extensions/common/extension.h"
12 #include "extensions/common/manifest_handler.h"
14 namespace extensions {
16 // Parses the "copresence" manifest key.
17 // TODO(ckehoe): Handle the copresence permission here.
18 class CopresenceManifestHandler final : public ManifestHandler {
19 public:
20 CopresenceManifestHandler();
21 ~CopresenceManifestHandler() override;
23 bool Parse(Extension* extension, base::string16* error) override;
25 private:
26 const std::vector<std::string> Keys() const override;
28 DISALLOW_COPY_AND_ASSIGN(CopresenceManifestHandler);
31 // The parsed data from the copresence manifest entry.
32 struct CopresenceManifestData final : public Extension::ManifestData {
33 public:
34 CopresenceManifestData();
35 ~CopresenceManifestData() override;
37 std::string project_id;
40 } // namespace extensions
42 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_COPRESENCE_MANIFEST_H_