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

Side by Side Diff: ppapi/proxy/platform_verification_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/pdf_resource.h ('k') | ppapi/proxy/plugin_array_buffer_var.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_
6 #define PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ 6 #define PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_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_platform_verification_api.h" 10 #include "ppapi/thunk/ppb_platform_verification_api.h"
11 11
12 namespace ppapi { 12 namespace ppapi {
13 namespace proxy { 13 namespace proxy {
14 14
15 class PPAPI_PROXY_EXPORT PlatformVerificationPrivateResource 15 class PPAPI_PROXY_EXPORT PlatformVerificationPrivateResource
16 : public PluginResource, 16 : public PluginResource,
17 public thunk::PPB_PlatformVerification_API { 17 public thunk::PPB_PlatformVerification_API {
18 public: 18 public:
19 PlatformVerificationPrivateResource(Connection connection, 19 PlatformVerificationPrivateResource(Connection connection,
20 PP_Instance instance); 20 PP_Instance instance);
21 21
22 private: 22 private:
23 struct ChallengePlatformParams { 23 struct ChallengePlatformParams {
24 PP_Var* signed_data; 24 PP_Var* signed_data;
25 PP_Var* signed_data_signature; 25 PP_Var* signed_data_signature;
26 PP_Var* platform_key_certificate; 26 PP_Var* platform_key_certificate;
27 scoped_refptr<TrackedCallback> callback; 27 scoped_refptr<TrackedCallback> callback;
28 }; 28 };
29 29
30 virtual ~PlatformVerificationPrivateResource(); 30 ~PlatformVerificationPrivateResource() override;
31 31
32 // PluginResource overrides. 32 // PluginResource overrides.
33 virtual thunk::PPB_PlatformVerification_API* 33 thunk::PPB_PlatformVerification_API* AsPPB_PlatformVerification_API()
34 AsPPB_PlatformVerification_API() override; 34 override;
35 35
36 // PPB_PlatformVerification_API implementation. 36 // PPB_PlatformVerification_API implementation.
37 virtual int32_t ChallengePlatform( 37 int32_t ChallengePlatform(
38 const PP_Var& service_id, 38 const PP_Var& service_id,
39 const PP_Var& challenge, 39 const PP_Var& challenge,
40 PP_Var* signed_data, 40 PP_Var* signed_data,
41 PP_Var* signed_data_signature, 41 PP_Var* signed_data_signature,
42 PP_Var* platform_key_certificate, 42 PP_Var* platform_key_certificate,
43 const scoped_refptr<TrackedCallback>& callback) override; 43 const scoped_refptr<TrackedCallback>& callback) override;
44 void OnChallengePlatformReply( 44 void OnChallengePlatformReply(
45 ChallengePlatformParams output_params, 45 ChallengePlatformParams output_params,
46 const ResourceMessageReplyParams& params, 46 const ResourceMessageReplyParams& params,
47 const std::vector<uint8_t>& raw_signed_data, 47 const std::vector<uint8_t>& raw_signed_data,
48 const std::vector<uint8_t>& raw_signed_data_signature, 48 const std::vector<uint8_t>& raw_signed_data_signature,
49 const std::string& raw_platform_key_certificate); 49 const std::string& raw_platform_key_certificate);
50 50
51 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationPrivateResource); 51 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationPrivateResource);
52 }; 52 };
53 53
54 } // namespace proxy 54 } // namespace proxy
55 } // namespace ppapi 55 } // namespace ppapi
56 56
57 #endif // PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ 57 #endif // PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/pdf_resource.h ('k') | ppapi/proxy/plugin_array_buffer_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698