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

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

Issue 201203006: Move basic API permissions code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move moar things Created 6 years, 9 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
deleted file mode 100644
index 5f3373e16a36cf7fb42e9eb782eabdacd4642624..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/permissions/socket_permission.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_H_
-#define CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_H_
-
-#include <string>
-
-#include "chrome/common/extensions/permissions/set_disjunction_permission.h"
-#include "chrome/common/extensions/permissions/socket_permission_data.h"
-#include "extensions/common/permissions/api_permission.h"
-
-namespace extensions {
-
-class SocketPermission : public SetDisjunctionPermission<SocketPermissionData,
- SocketPermission> {
- public:
- struct CheckParam : APIPermission::CheckParam {
- CheckParam(content::SocketPermissionRequest::OperationType type,
- const std::string& host,
- int port)
- : request(type, host, port) { }
- content::SocketPermissionRequest request;
- };
-
- explicit SocketPermission(const APIPermissionInfo* info);
-
- virtual ~SocketPermission();
-
- // Returns the localized permission messages of this permission.
- virtual PermissionMessages GetMessages() const OVERRIDE;
-
- private:
- bool AddAnyHostMessage(PermissionMessages& messages) const;
- void AddSubdomainHostMessage(PermissionMessages& messages) const;
- void AddSpecificHostMessage(PermissionMessages& messages) const;
- void AddNetworkListMessage(PermissionMessages& messages) const;
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_H_

Powered by Google App Engine
This is Rietveld 408576698