| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_COPRESENCE_MANIFEST_H_ | |
| 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_COPRESENCE_MANIFEST_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/macros.h" | |
| 12 #include "extensions/common/extension.h" | |
| 13 #include "extensions/common/manifest_handler.h" | |
| 14 | |
| 15 namespace extensions { | |
| 16 | |
| 17 // Parses the "copresence" manifest key. | |
| 18 // TODO(ckehoe): Handle the copresence permission here. | |
| 19 class CopresenceManifestHandler final : public ManifestHandler { | |
| 20 public: | |
| 21 CopresenceManifestHandler(); | |
| 22 ~CopresenceManifestHandler() override; | |
| 23 | |
| 24 bool Parse(Extension* extension, base::string16* error) override; | |
| 25 | |
| 26 private: | |
| 27 const std::vector<std::string> Keys() const override; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(CopresenceManifestHandler); | |
| 30 }; | |
| 31 | |
| 32 // The parsed data from the copresence manifest entry. | |
| 33 struct CopresenceManifestData final : public Extension::ManifestData { | |
| 34 public: | |
| 35 CopresenceManifestData(); | |
| 36 ~CopresenceManifestData() override; | |
| 37 | |
| 38 std::string api_key; | |
| 39 }; | |
| 40 | |
| 41 } // namespace extensions | |
| 42 | |
| 43 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_COPRESENCE_MANIFEST_H_ | |
| OLD | NEW |