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

Side by Side Diff: src/trusted/plugin/socket_address.h

Issue 2981011: Move plugin/srpc contents to the more appropriately named plugin/common.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 10 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/trusted/plugin/shared_memory.cc ('k') | src/trusted/plugin/socket_address.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 /* 1 /*
2 * Copyright 2008 The Native Client Authors. All rights reserved. 2 * Copyright 2008 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 // A portable representation of a scriptable socket address object. 7 // A portable representation of a scriptable socket address object.
8 8
9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SOCKET_ADDRESS_H_ 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SOCKET_ADDRESS_H_
10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SOCKET_ADDRESS_H_ 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SOCKET_ADDRESS_H_
11 11
12 #include "native_client/src/include/nacl_macros.h" 12 #include "native_client/src/include/nacl_macros.h"
13 #include "native_client/src/trusted/plugin/srpc/desc_based_handle.h" 13 #include "native_client/src/trusted/plugin/desc_based_handle.h"
14 #include "native_client/src/trusted/plugin/srpc/utility.h" 14 #include "native_client/src/trusted/plugin/utility.h"
15 15
16 namespace plugin { 16 namespace plugin {
17 17
18 class Plugin; 18 class Plugin;
19 class ServiceRuntime; 19 class ServiceRuntime;
20 class ScriptableHandle; 20 class ScriptableHandle;
21 21
22 22
23 // SocketAddress is used to represent socket address descriptors. 23 // SocketAddress is used to represent socket address descriptors.
24 class SocketAddress : public DescBasedHandle { 24 class SocketAddress : public DescBasedHandle {
25 public: 25 public:
26 // Create SocketAddress objects. 26 // Create SocketAddress objects.
27 static SocketAddress* New(Plugin* plugin, nacl::DescWrapper* wrapper); 27 static SocketAddress* New(Plugin* plugin, nacl::DescWrapper* wrapper);
28 28
29 // Connect to a socket address. 29 // Connect to a socket address.
30 virtual ScriptableHandle* Connect(); 30 virtual ScriptableHandle* Connect();
31 31
32 private: 32 private:
33 NACL_DISALLOW_COPY_AND_ASSIGN(SocketAddress); 33 NACL_DISALLOW_COPY_AND_ASSIGN(SocketAddress);
34 SocketAddress(); 34 SocketAddress();
35 ~SocketAddress(); 35 ~SocketAddress();
36 bool Init(Plugin* plugin, nacl::DescWrapper* wrapper); 36 bool Init(Plugin* plugin, nacl::DescWrapper* wrapper);
37 void LoadMethods(); 37 void LoadMethods();
38 }; 38 };
39 39
40 } // namespace plugin 40 } // namespace plugin
41 41
42 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SOCKET_ADDRESS_H_ 42 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SOCKET_ADDRESS_H_
OLDNEW
« no previous file with comments | « src/trusted/plugin/shared_memory.cc ('k') | src/trusted/plugin/socket_address.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698