| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PERMISSIONS_SOCKET_PERMISSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/common/extensions/permissions/api_permission.h" | 10 #include "chrome/common/extensions/permissions/api_permission.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 virtual ~SocketPermission(); | 29 virtual ~SocketPermission(); |
| 30 | 30 |
| 31 // Returns the localized permission messages of this permission. | 31 // Returns the localized permission messages of this permission. |
| 32 virtual PermissionMessages GetMessages() const OVERRIDE; | 32 virtual PermissionMessages GetMessages() const OVERRIDE; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 bool AddAnyHostMessage(PermissionMessages& messages) const; | 35 bool AddAnyHostMessage(PermissionMessages& messages) const; |
| 36 void AddSubdomainHostMessage(PermissionMessages& messages) const; | 36 void AddSubdomainHostMessage(PermissionMessages& messages) const; |
| 37 void AddSpecificHostMessage(PermissionMessages& messages) const; | 37 void AddSpecificHostMessage(PermissionMessages& messages) const; |
| 38 void AddNetworkListMessage(PermissionMessages& messages) const; |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace extensions | 41 } // namespace extensions |
| 41 | 42 |
| 42 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_H_ | 43 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_H_ |
| OLD | NEW |