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_
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
{
20 CopresenceManifestHandler();
21 ~CopresenceManifestHandler() override
;
23 bool Parse(Extension
* extension
, base::string16
* error
) override
;
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
{
34 CopresenceManifestData();
35 ~CopresenceManifestData() override
;
37 std::string project_id
;
40 } // namespace extensions
42 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_COPRESENCE_MANIFEST_H_