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

Side by Side Diff: ppapi/proxy/host_resolver_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/graphics_2d_resource.h ('k') | ppapi/proxy/host_resolver_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_HOST_RESOLVER_PRIVATE_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_HOST_RESOLVER_PRIVATE_RESOURCE_H_
6 #define PPAPI_PROXY_HOST_RESOLVER_PRIVATE_RESOURCE_H_ 6 #define PPAPI_PROXY_HOST_RESOLVER_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/host_resolver_resource_base.h" 10 #include "ppapi/proxy/host_resolver_resource_base.h"
11 #include "ppapi/proxy/ppapi_proxy_export.h" 11 #include "ppapi/proxy/ppapi_proxy_export.h"
12 #include "ppapi/thunk/ppb_host_resolver_private_api.h" 12 #include "ppapi/thunk/ppb_host_resolver_private_api.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 namespace proxy { 15 namespace proxy {
16 16
17 class PPAPI_PROXY_EXPORT HostResolverPrivateResource 17 class PPAPI_PROXY_EXPORT HostResolverPrivateResource
18 : public HostResolverResourceBase, 18 : public HostResolverResourceBase,
19 public thunk::PPB_HostResolver_Private_API { 19 public thunk::PPB_HostResolver_Private_API {
20 public: 20 public:
21 HostResolverPrivateResource(Connection connection, 21 HostResolverPrivateResource(Connection connection,
22 PP_Instance instance); 22 PP_Instance instance);
23 virtual ~HostResolverPrivateResource(); 23 ~HostResolverPrivateResource() override;
24 24
25 // PluginResource overrides. 25 // PluginResource overrides.
26 virtual thunk::PPB_HostResolver_Private_API* 26 thunk::PPB_HostResolver_Private_API* AsPPB_HostResolver_Private_API()
27 AsPPB_HostResolver_Private_API() override; 27 override;
28 28
29 // PPB_HostResolver_Private_API implementation. 29 // PPB_HostResolver_Private_API implementation.
30 virtual int32_t Resolve(const char* host, 30 int32_t Resolve(const char* host,
31 uint16_t port, 31 uint16_t port,
32 const PP_HostResolver_Private_Hint* hint, 32 const PP_HostResolver_Private_Hint* hint,
33 scoped_refptr<TrackedCallback> callback) override; 33 scoped_refptr<TrackedCallback> callback) override;
34 virtual PP_Var GetCanonicalName() override; 34 PP_Var GetCanonicalName() override;
35 virtual uint32_t GetSize() override; 35 uint32_t GetSize() override;
36 virtual bool GetNetAddress(uint32_t index, 36 bool GetNetAddress(uint32_t index, PP_NetAddress_Private* address) override;
37 PP_NetAddress_Private* address) override;
38 37
39 private: 38 private:
40 DISALLOW_COPY_AND_ASSIGN(HostResolverPrivateResource); 39 DISALLOW_COPY_AND_ASSIGN(HostResolverPrivateResource);
41 }; 40 };
42 41
43 } // namespace proxy 42 } // namespace proxy
44 } // namespace ppapi 43 } // namespace ppapi
45 44
46 #endif // PPAPI_PROXY_HOST_RESOLVER_PRIVATE_RESOURCE_H_ 45 #endif // PPAPI_PROXY_HOST_RESOLVER_PRIVATE_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/graphics_2d_resource.h ('k') | ppapi/proxy/host_resolver_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698