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

Side by Side Diff: ppapi/shared_impl/private/ppb_host_resolver_shared.h

Issue 10916040: Add TCP and UDP proxies to NaCl IPC IRT build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
OLDNEW
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 PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_
6 #define PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "ppapi/shared_impl/resource.h" 13 #include "ppapi/shared_impl/resource.h"
14 #include "ppapi/shared_impl/tracked_callback.h" 14 #include "ppapi/shared_impl/tracked_callback.h"
15 #include "ppapi/thunk/ppb_host_resolver_private_api.h" 15 #include "ppapi/thunk/ppb_host_resolver_private_api.h"
16 16
17 namespace net { 17 namespace net {
18 class AddressList; 18 class AddressList;
19 } 19 }
20 20
21 namespace ppapi { 21 namespace ppapi {
22 22
23 struct HostPortPair { 23 struct HostPortPair {
24 std::string host; 24 std::string host;
25 uint16_t port; 25 uint16_t port;
26 }; 26 };
27 27
28 typedef std::vector<PP_NetAddress_Private> NetAddressList; 28 typedef std::vector<PP_NetAddress_Private> NetAddressList;
29 29
30 #if !defined(OS_NACL) && !defined(NACL_WIN64)
30 PPAPI_SHARED_EXPORT NetAddressList* 31 PPAPI_SHARED_EXPORT NetAddressList*
31 CreateNetAddressListFromAddressList(const net::AddressList& list); 32 CreateNetAddressListFromAddressList(const net::AddressList& list);
33 #endif
32 34
33 class PPAPI_SHARED_EXPORT PPB_HostResolver_Shared 35 class PPAPI_SHARED_EXPORT PPB_HostResolver_Shared
34 : public thunk::PPB_HostResolver_Private_API, 36 : public thunk::PPB_HostResolver_Private_API,
35 public Resource { 37 public Resource {
36 public: 38 public:
37 // C-tor used in Impl case. 39 // C-tor used in Impl case.
38 explicit PPB_HostResolver_Shared(PP_Instance instance); 40 explicit PPB_HostResolver_Shared(PP_Instance instance);
39 41
40 // C-tor used in Proxy case. 42 // C-tor used in Proxy case.
41 explicit PPB_HostResolver_Shared(const HostResource& resource); 43 explicit PPB_HostResolver_Shared(const HostResource& resource);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 77
76 std::string canonical_name_; 78 std::string canonical_name_;
77 NetAddressList net_address_list_; 79 NetAddressList net_address_list_;
78 80
79 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Shared); 81 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Shared);
80 }; 82 };
81 83
82 } // namespace ppapi 84 } // namespace ppapi
83 85
84 #endif // PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_ 86 #endif // PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/shared_impl/private/ppb_host_resolver_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698