OLD | NEW |
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 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual ~PPB_HostResolver_Shared(); | 42 virtual ~PPB_HostResolver_Shared(); |
43 | 43 |
44 // Resource overrides. | 44 // Resource overrides. |
45 virtual PPB_HostResolver_Private_API* | 45 virtual PPB_HostResolver_Private_API* |
46 AsPPB_HostResolver_Private_API() OVERRIDE; | 46 AsPPB_HostResolver_Private_API() OVERRIDE; |
47 | 47 |
48 // PPB_HostResolver_Private_API implementation. | 48 // PPB_HostResolver_Private_API implementation. |
49 virtual int32_t Resolve(const char* host, | 49 virtual int32_t Resolve(const char* host, |
50 uint16_t port, | 50 uint16_t port, |
51 const PP_HostResolver_Private_Hint* hint, | 51 const PP_HostResolver_Private_Hint* hint, |
52 PP_CompletionCallback callback) OVERRIDE; | 52 ApiCallbackType callback) OVERRIDE; |
53 virtual PP_Var GetCanonicalName() OVERRIDE; | 53 virtual PP_Var GetCanonicalName() OVERRIDE; |
54 virtual uint32_t GetSize() OVERRIDE; | 54 virtual uint32_t GetSize() OVERRIDE; |
55 virtual bool GetNetAddress(uint32_t index, | 55 virtual bool GetNetAddress(uint32_t index, |
56 PP_NetAddress_Private* address) OVERRIDE; | 56 PP_NetAddress_Private* address) OVERRIDE; |
57 | 57 |
58 void OnResolveCompleted(bool succeeded, | 58 void OnResolveCompleted(bool succeeded, |
59 const std::string& canonical_name, | 59 const std::string& canonical_name, |
60 const NetAddressList& net_address_list); | 60 const NetAddressList& net_address_list); |
61 | 61 |
62 // Send functions that need to be implemented differently for the | 62 // Send functions that need to be implemented differently for the |
(...skipping 11 matching lines...) Expand all Loading... |
74 | 74 |
75 std::string canonical_name_; | 75 std::string canonical_name_; |
76 NetAddressList net_address_list_; | 76 NetAddressList net_address_list_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Shared); | 78 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Shared); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace ppapi | 81 } // namespace ppapi |
82 | 82 |
83 #endif // PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_ | 83 #endif // PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_ |
OLD | NEW |