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

Side by Side Diff: chrome/common/extensions/manifest_handlers/copresence_manifest.h

Issue 2130803002: Deleting the copresence API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698