OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 REMOTING_CLIENT_PLUGIN_PEPPER_ADDRESS_RESOLVER_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_ADDRESS_RESOLVER_H_ |
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_ADDRESS_RESOLVER_H_ | 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_ADDRESS_RESOLVER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "ppapi/cpp/host_resolver.h" | 11 #include "ppapi/cpp/host_resolver.h" |
10 #include "ppapi/utility/completion_callback_factory.h" | 12 #include "ppapi/utility/completion_callback_factory.h" |
11 #include "third_party/webrtc/base/asyncresolverinterface.h" | 13 #include "third_party/webrtc/base/asyncresolverinterface.h" |
12 | 14 |
13 namespace remoting { | 15 namespace remoting { |
14 | 16 |
15 // rtc::AsyncResolverInterface implementation that uses Pepper to resolve | 17 // rtc::AsyncResolverInterface implementation that uses Pepper to resolve |
16 // addresses. | 18 // addresses. |
17 class PepperAddressResolver : public rtc::AsyncResolverInterface { | 19 class PepperAddressResolver : public rtc::AsyncResolverInterface { |
(...skipping 18 matching lines...) Expand all Loading... |
36 int error_; | 38 int error_; |
37 | 39 |
38 pp::CompletionCallbackFactory<PepperAddressResolver> callback_factory_; | 40 pp::CompletionCallbackFactory<PepperAddressResolver> callback_factory_; |
39 | 41 |
40 DISALLOW_COPY_AND_ASSIGN(PepperAddressResolver); | 42 DISALLOW_COPY_AND_ASSIGN(PepperAddressResolver); |
41 }; | 43 }; |
42 | 44 |
43 } // namespace remoting | 45 } // namespace remoting |
44 | 46 |
45 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_ADDRESS_RESOLVER_H_ | 47 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_ADDRESS_RESOLVER_H_ |
OLD | NEW |