OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "chrome/common/extensions/extension.h" | 9 #include "chrome/common/extensions/extension.h" |
10 #include "chrome/common/extensions/manifest_handler.h" | |
11 #include "chrome/common/extensions/permissions/socket_permission_data.h" | 10 #include "chrome/common/extensions/permissions/socket_permission_data.h" |
| 11 #include "extensions/common/manifest_handler.h" |
12 | 12 |
13 namespace extensions { | 13 namespace extensions { |
14 | 14 |
15 // Parses the "sockets" manifest key. | 15 // Parses the "sockets" manifest key. |
16 class SocketsHandler : public ManifestHandler { | 16 class SocketsHandler : public ManifestHandler { |
17 public: | 17 public: |
18 SocketsHandler(); | 18 SocketsHandler(); |
19 virtual ~SocketsHandler(); | 19 virtual ~SocketsHandler(); |
20 | 20 |
21 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; | 21 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 bool CheckRequestImpl(const Extension* extension, | 60 bool CheckRequestImpl(const Extension* extension, |
61 const content::SocketPermissionRequest& request); | 61 const content::SocketPermissionRequest& request); |
62 | 62 |
63 PermissionSet permissions_; | 63 PermissionSet permissions_; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace extensions | 66 } // namespace extensions |
67 | 67 |
68 #endif // CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ | 68 #endif // CHROME_COMMON_EXTENSIONS_API_SOCKETS_SOCKETS_HANDLER_H_ |
OLD | NEW |