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

Side by Side Diff: content/public/common/socket_permission_request.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: fixed Android build Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_
6 #define CONTENT_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_
7
8 #include <string>
9
10 namespace content {
11
12 // This module provides helper types for checking socket permission.
13
14 struct SocketPermissionRequest {
15 enum OperationType {
16 NONE = 0,
17 TCP_CONNECT,
18 TCP_LISTEN,
19 UDP_BIND,
20 UDP_SEND_TO,
21 };
22
23 SocketPermissionRequest(OperationType type,
24 const std::string& host,
25 int port)
26 : type(type),
27 host(host),
28 port(port) {
29 }
30
31 OperationType type;
32 std::string host;
33 int port;
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_PUBLIC_COMMON_SOCKET_PERMISSION_REQUEST_H_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698