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

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

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export AssertLockHeld Created 8 years, 6 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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual ~PPB_HostResolver_Shared(); 43 virtual ~PPB_HostResolver_Shared();
44 44
45 // Resource overrides. 45 // Resource overrides.
46 virtual PPB_HostResolver_Private_API* 46 virtual PPB_HostResolver_Private_API*
47 AsPPB_HostResolver_Private_API() OVERRIDE; 47 AsPPB_HostResolver_Private_API() OVERRIDE;
48 48
49 // PPB_HostResolver_Private_API implementation. 49 // PPB_HostResolver_Private_API implementation.
50 virtual int32_t Resolve(const char* host, 50 virtual int32_t Resolve(const char* host,
51 uint16_t port, 51 uint16_t port,
52 const PP_HostResolver_Private_Hint* hint, 52 const PP_HostResolver_Private_Hint* hint,
53 PP_CompletionCallback callback) OVERRIDE; 53 scoped_refptr<TrackedCallback> callback) OVERRIDE;
54 virtual PP_Var GetCanonicalName() OVERRIDE; 54 virtual PP_Var GetCanonicalName() OVERRIDE;
55 virtual uint32_t GetSize() OVERRIDE; 55 virtual uint32_t GetSize() OVERRIDE;
56 virtual bool GetNetAddress(uint32_t index, 56 virtual bool GetNetAddress(uint32_t index,
57 PP_NetAddress_Private* address) OVERRIDE; 57 PP_NetAddress_Private* address) OVERRIDE;
58 58
59 void OnResolveCompleted(bool succeeded, 59 void OnResolveCompleted(bool succeeded,
60 const std::string& canonical_name, 60 const std::string& canonical_name,
61 const NetAddressList& net_address_list); 61 const NetAddressList& net_address_list);
62 62
63 // Send functions that need to be implemented differently for the 63 // Send functions that need to be implemented differently for the
(...skipping 11 matching lines...) Expand all
75 75
76 std::string canonical_name_; 76 std::string canonical_name_;
77 NetAddressList net_address_list_; 77 NetAddressList net_address_list_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Shared); 79 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Shared);
80 }; 80 };
81 81
82 } // namespace ppapi 82 } // namespace ppapi
83 83
84 #endif // PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_ 84 #endif // PPAPI_SHARED_IMPL_PRIVATE_PPB_HOST_RESOLVER_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_video_decoder_shared.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