OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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_API_SOCKETS_SOCKETS_MANIFEST_HANDLER_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_HANDLER_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "extensions/common/manifest_handler.h" |
| 12 |
| 13 namespace extensions { |
| 14 class Extension; |
| 15 class ManifestPermission; |
| 16 } |
| 17 |
| 18 namespace extensions { |
| 19 |
| 20 // Parses the "sockets" manifest key. |
| 21 class SocketsManifestHandler : public ManifestHandler { |
| 22 public: |
| 23 SocketsManifestHandler(); |
| 24 virtual ~SocketsManifestHandler(); |
| 25 |
| 26 // ManifestHandler overrides. |
| 27 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; |
| 28 virtual ManifestPermission* CreatePermission() OVERRIDE; |
| 29 virtual ManifestPermission* CreateInitialRequiredPermission( |
| 30 const Extension* extension) OVERRIDE; |
| 31 |
| 32 private: |
| 33 // ManifestHandler overrides. |
| 34 virtual const std::vector<std::string> Keys() const OVERRIDE; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(SocketsManifestHandler); |
| 37 }; |
| 38 |
| 39 } // namespace extensions |
| 40 |
| 41 #endif // CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_MANIFEST_HANDLER_H_ |
OLD | NEW |