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

Side by Side Diff: ppapi/proxy/udp_socket_private_resource.h

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 years, 8 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
« no previous file with comments | « ppapi/proxy/truetype_font_singleton_resource.h ('k') | ppapi/proxy/udp_socket_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROXY_UDP_SOCKET_PRIVATE_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_UDP_SOCKET_PRIVATE_RESOURCE_H_
6 #define PPAPI_PROXY_UDP_SOCKET_PRIVATE_RESOURCE_H_ 6 #define PPAPI_PROXY_UDP_SOCKET_PRIVATE_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/proxy/ppapi_proxy_export.h" 10 #include "ppapi/proxy/ppapi_proxy_export.h"
11 #include "ppapi/proxy/udp_socket_resource_base.h" 11 #include "ppapi/proxy/udp_socket_resource_base.h"
12 #include "ppapi/thunk/ppb_udp_socket_private_api.h" 12 #include "ppapi/thunk/ppb_udp_socket_private_api.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 namespace proxy { 15 namespace proxy {
16 16
17 class PPAPI_PROXY_EXPORT UDPSocketPrivateResource 17 class PPAPI_PROXY_EXPORT UDPSocketPrivateResource
18 : public UDPSocketResourceBase, 18 : public UDPSocketResourceBase,
19 public thunk::PPB_UDPSocket_Private_API { 19 public thunk::PPB_UDPSocket_Private_API {
20 public: 20 public:
21 UDPSocketPrivateResource(Connection connection, PP_Instance instance); 21 UDPSocketPrivateResource(Connection connection, PP_Instance instance);
22 virtual ~UDPSocketPrivateResource(); 22 ~UDPSocketPrivateResource() override;
23 23
24 // PluginResource implementation. 24 // PluginResource implementation.
25 virtual thunk::PPB_UDPSocket_Private_API* 25 thunk::PPB_UDPSocket_Private_API* AsPPB_UDPSocket_Private_API() override;
26 AsPPB_UDPSocket_Private_API() override;
27 26
28 // PPB_UDPSocket_Private_API implementation. 27 // PPB_UDPSocket_Private_API implementation.
29 virtual int32_t SetSocketFeature(PP_UDPSocketFeature_Private name, 28 int32_t SetSocketFeature(PP_UDPSocketFeature_Private name,
30 PP_Var value) override; 29 PP_Var value) override;
31 virtual int32_t Bind(const PP_NetAddress_Private* addr, 30 int32_t Bind(const PP_NetAddress_Private* addr,
32 scoped_refptr<TrackedCallback> callback) override; 31 scoped_refptr<TrackedCallback> callback) override;
33 virtual PP_Bool GetBoundAddress(PP_NetAddress_Private* addr) override; 32 PP_Bool GetBoundAddress(PP_NetAddress_Private* addr) override;
34 virtual int32_t RecvFrom(char* buffer, 33 int32_t RecvFrom(char* buffer,
35 int32_t num_bytes, 34 int32_t num_bytes,
36 scoped_refptr<TrackedCallback> callback) override; 35 scoped_refptr<TrackedCallback> callback) override;
37 virtual PP_Bool GetRecvFromAddress(PP_NetAddress_Private* addr) override; 36 PP_Bool GetRecvFromAddress(PP_NetAddress_Private* addr) override;
38 virtual int32_t SendTo(const char* buffer, 37 int32_t SendTo(const char* buffer,
39 int32_t num_bytes, 38 int32_t num_bytes,
40 const PP_NetAddress_Private* addr, 39 const PP_NetAddress_Private* addr,
41 scoped_refptr<TrackedCallback> callback) override; 40 scoped_refptr<TrackedCallback> callback) override;
42 virtual void Close() override; 41 void Close() override;
43 42
44 private: 43 private:
45 DISALLOW_COPY_AND_ASSIGN(UDPSocketPrivateResource); 44 DISALLOW_COPY_AND_ASSIGN(UDPSocketPrivateResource);
46 }; 45 };
47 46
48 } // namespace proxy 47 } // namespace proxy
49 } // namespace ppapi 48 } // namespace ppapi
50 49
51 #endif // PPAPI_PROXY_UDP_SOCKET_PRIVATE_RESOURCE_H_ 50 #endif // PPAPI_PROXY_UDP_SOCKET_PRIVATE_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/truetype_font_singleton_resource.h ('k') | ppapi/proxy/udp_socket_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698