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

Unified Diff: chrome/common/extensions/permissions/socket_permission.h

Issue 10993078: Use extensions socket permission for TCP/UDP socket APIs in Pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove duplication Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/permissions/socket_permission.h
diff --git a/chrome/common/extensions/permissions/socket_permission.h b/chrome/common/extensions/permissions/socket_permission.h
index 5e73ca907750b1899272f3f7c349480a75d227db..e148379c39df7562da5b558ddd2878ca6701a106 100644
--- a/chrome/common/extensions/permissions/socket_permission.h
+++ b/chrome/common/extensions/permissions/socket_permission.h
@@ -26,15 +26,11 @@ namespace extensions {
class SocketPermission : public APIPermission {
public:
struct CheckParam : APIPermission::CheckParam {
- CheckParam(SocketPermissionData::OperationType type,
+ CheckParam(content::SocketPermissionRequest::OperationType type,
const std::string& host,
int port)
- : type(type),
- host(host),
- port(port) { }
- SocketPermissionData::OperationType type;
- std::string host;
- int port;
+ : request(type, host, port) { }
+ content::SocketPermissionRequest request;
};
explicit SocketPermission(const APIPermissionInfo* info);

Powered by Google App Engine
This is Rietveld 408576698