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

Side by Side Diff: ppapi/proxy/network_proxy_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/network_monitor_resource.h ('k') | ppapi/proxy/output_protection_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_NETWORK_PROXY_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_NETWORK_PROXY_RESOURCE_H_
6 #define PPAPI_PROXY_NETWORK_PROXY_RESOURCE_H_ 6 #define PPAPI_PROXY_NETWORK_PROXY_RESOURCE_H_
7 7
8 #include "ppapi/proxy/plugin_resource.h" 8 #include "ppapi/proxy/plugin_resource.h"
9 #include "ppapi/proxy/ppapi_proxy_export.h" 9 #include "ppapi/proxy/ppapi_proxy_export.h"
10 #include "ppapi/thunk/ppb_network_proxy_api.h" 10 #include "ppapi/thunk/ppb_network_proxy_api.h"
11 11
12 namespace ppapi { 12 namespace ppapi {
13 namespace proxy { 13 namespace proxy {
14 14
15 // The proxy-side resource for PPB_NetworkProxy. 15 // The proxy-side resource for PPB_NetworkProxy.
16 class PPAPI_PROXY_EXPORT NetworkProxyResource 16 class PPAPI_PROXY_EXPORT NetworkProxyResource
17 : public PluginResource, 17 : public PluginResource,
18 public thunk::PPB_NetworkProxy_API { 18 public thunk::PPB_NetworkProxy_API {
19 public: 19 public:
20 NetworkProxyResource(Connection connection, PP_Instance instance); 20 NetworkProxyResource(Connection connection, PP_Instance instance);
21 virtual ~NetworkProxyResource(); 21 ~NetworkProxyResource() override;
22 22
23 private: 23 private:
24 // Resource implementation. 24 // Resource implementation.
25 virtual thunk::PPB_NetworkProxy_API* AsPPB_NetworkProxy_API() override; 25 thunk::PPB_NetworkProxy_API* AsPPB_NetworkProxy_API() override;
26 26
27 // PPB_NetworkProxy_API implementation. 27 // PPB_NetworkProxy_API implementation.
28 virtual int32_t GetProxyForURL( 28 int32_t GetProxyForURL(
29 PP_Instance instance, 29 PP_Instance instance,
30 PP_Var url, 30 PP_Var url,
31 PP_Var* proxy_string, 31 PP_Var* proxy_string,
32 scoped_refptr<TrackedCallback> callback) override; 32 scoped_refptr<TrackedCallback> callback) override;
33 33
34 void OnPluginMsgGetProxyForURLReply(PP_Var* proxy_string_out_param, 34 void OnPluginMsgGetProxyForURLReply(PP_Var* proxy_string_out_param,
35 scoped_refptr<TrackedCallback> callback, 35 scoped_refptr<TrackedCallback> callback,
36 const ResourceMessageReplyParams& params, 36 const ResourceMessageReplyParams& params,
37 const std::string& proxy_string); 37 const std::string& proxy_string);
38 38
39 DISALLOW_COPY_AND_ASSIGN(NetworkProxyResource); 39 DISALLOW_COPY_AND_ASSIGN(NetworkProxyResource);
40 }; 40 };
41 41
42 } // namespace proxy 42 } // namespace proxy
43 } // namespace ppapi 43 } // namespace ppapi
44 44
45 #endif // PPAPI_PROXY_NETWORK_PROXY_RESOURCE_H_ 45 #endif // PPAPI_PROXY_NETWORK_PROXY_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/network_monitor_resource.h ('k') | ppapi/proxy/output_protection_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698