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

Side by Side Diff: remoting/client/plugin/pepper_packet_socket_factory.cc

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 (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 #include "remoting/client/plugin/pepper_packet_socket_factory.h" 5 #include "remoting/client/plugin/pepper_packet_socket_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 explicit UdpPacketSocket(const pp::InstanceHandle& instance); 88 explicit UdpPacketSocket(const pp::InstanceHandle& instance);
89 virtual ~UdpPacketSocket(); 89 virtual ~UdpPacketSocket();
90 90
91 // |min_port| and |max_port| are set to zero if the port number 91 // |min_port| and |max_port| are set to zero if the port number
92 // should be assigned by the OS. 92 // should be assigned by the OS.
93 bool Init(const rtc::SocketAddress& local_address, 93 bool Init(const rtc::SocketAddress& local_address,
94 int min_port, 94 int min_port,
95 int max_port); 95 int max_port);
96 96
97 // rtc::AsyncPacketSocket interface. 97 // rtc::AsyncPacketSocket interface.
98 virtual rtc::SocketAddress GetLocalAddress() const OVERRIDE; 98 virtual rtc::SocketAddress GetLocalAddress() const override;
99 virtual rtc::SocketAddress GetRemoteAddress() const OVERRIDE; 99 virtual rtc::SocketAddress GetRemoteAddress() const override;
100 virtual int Send(const void* data, size_t data_size, 100 virtual int Send(const void* data, size_t data_size,
101 const rtc::PacketOptions& options) OVERRIDE; 101 const rtc::PacketOptions& options) override;
102 virtual int SendTo(const void* data, 102 virtual int SendTo(const void* data,
103 size_t data_size, 103 size_t data_size,
104 const rtc::SocketAddress& address, 104 const rtc::SocketAddress& address,
105 const rtc::PacketOptions& options) OVERRIDE; 105 const rtc::PacketOptions& options) override;
106 virtual int Close() OVERRIDE; 106 virtual int Close() override;
107 virtual State GetState() const OVERRIDE; 107 virtual State GetState() const override;
108 virtual int GetOption(rtc::Socket::Option opt, int* value) OVERRIDE; 108 virtual int GetOption(rtc::Socket::Option opt, int* value) override;
109 virtual int SetOption(rtc::Socket::Option opt, int value) OVERRIDE; 109 virtual int SetOption(rtc::Socket::Option opt, int value) override;
110 virtual int GetError() const OVERRIDE; 110 virtual int GetError() const override;
111 virtual void SetError(int error) OVERRIDE; 111 virtual void SetError(int error) override;
112 112
113 private: 113 private:
114 struct PendingPacket { 114 struct PendingPacket {
115 PendingPacket(const void* buffer, 115 PendingPacket(const void* buffer,
116 int buffer_size, 116 int buffer_size,
117 const pp::NetAddress& address); 117 const pp::NetAddress& address);
118 118
119 scoped_refptr<net::IOBufferWithSize> data; 119 scoped_refptr<net::IOBufferWithSize> data;
120 pp::NetAddress address; 120 pp::NetAddress address;
121 bool retried; 121 bool retried;
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 NOTREACHED(); 436 NOTREACHED();
437 return NULL; 437 return NULL;
438 } 438 }
439 439
440 rtc::AsyncResolverInterface* 440 rtc::AsyncResolverInterface*
441 PepperPacketSocketFactory::CreateAsyncResolver() { 441 PepperPacketSocketFactory::CreateAsyncResolver() {
442 return new PepperAddressResolver(pp_instance_); 442 return new PepperAddressResolver(pp_instance_);
443 } 443 }
444 444
445 } // namespace remoting 445 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_packet_socket_factory.h ('k') | remoting/client/plugin/pepper_plugin_thread_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698