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

Side by Side Diff: remoting/client/plugin/pepper_address_resolver.h

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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 "ppapi/cpp/host_resolver.h" 8 #include "ppapi/cpp/host_resolver.h"
9 #include "ppapi/utility/completion_callback_factory.h" 9 #include "ppapi/utility/completion_callback_factory.h"
10 #include "third_party/webrtc/base/asyncresolverinterface.h" 10 #include "third_party/webrtc/base/asyncresolverinterface.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 // rtc::AsyncResolverInterface implementation that uses Pepper to resolve 14 // rtc::AsyncResolverInterface implementation that uses Pepper to resolve
15 // addresses. 15 // addresses.
16 class PepperAddressResolver : public rtc::AsyncResolverInterface { 16 class PepperAddressResolver : public rtc::AsyncResolverInterface {
17 public: 17 public:
18 explicit PepperAddressResolver(const pp::InstanceHandle& instance); 18 explicit PepperAddressResolver(const pp::InstanceHandle& instance);
19 virtual ~PepperAddressResolver(); 19 ~PepperAddressResolver() override;
20 20
21 // rtc::AsyncResolverInterface. 21 // rtc::AsyncResolverInterface.
22 virtual void Start(const rtc::SocketAddress& addr) override; 22 void Start(const rtc::SocketAddress& addr) override;
23 virtual bool GetResolvedAddress(int family, 23 bool GetResolvedAddress(int family, rtc::SocketAddress* addr) const override;
24 rtc::SocketAddress* addr) const override; 24 int GetError() const override;
25 virtual int GetError() const override; 25 void Destroy(bool wait) override;
26 virtual void Destroy(bool wait) override;
27 26
28 private: 27 private:
29 void OnResolved(int32_t result); 28 void OnResolved(int32_t result);
30 29
31 pp::HostResolver resolver_; 30 pp::HostResolver resolver_;
32 31
33 rtc::SocketAddress ipv4_address_; 32 rtc::SocketAddress ipv4_address_;
34 rtc::SocketAddress ipv6_address_; 33 rtc::SocketAddress ipv6_address_;
35 34
36 int error_; 35 int error_;
37 36
38 pp::CompletionCallbackFactory<PepperAddressResolver> callback_factory_; 37 pp::CompletionCallbackFactory<PepperAddressResolver> callback_factory_;
39 38
40 DISALLOW_COPY_AND_ASSIGN(PepperAddressResolver); 39 DISALLOW_COPY_AND_ASSIGN(PepperAddressResolver);
41 }; 40 };
42 41
43 } // namespace remoting 42 } // namespace remoting
44 43
45 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_ADDRESS_RESOLVER_H_ 44 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_ADDRESS_RESOLVER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/normalizing_input_filter_mac.h ('k') | remoting/client/plugin/pepper_audio_player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698