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

Side by Side Diff: ppapi/proxy/output_protection_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_proxy_resource.h ('k') | ppapi/proxy/pdf_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 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_OUTPUT_PROTECTION_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_OUTPUT_PROTECTION_RESOURCE_H_
6 #define PPAPI_PROXY_OUTPUT_PROTECTION_RESOURCE_H_ 6 #define PPAPI_PROXY_OUTPUT_PROTECTION_RESOURCE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/c/private/ppb_output_protection_private.h" 9 #include "ppapi/c/private/ppb_output_protection_private.h"
10 #include "ppapi/proxy/device_enumeration_resource_helper.h" 10 #include "ppapi/proxy/device_enumeration_resource_helper.h"
11 #include "ppapi/proxy/plugin_resource.h" 11 #include "ppapi/proxy/plugin_resource.h"
12 #include "ppapi/thunk/ppb_output_protection_api.h" 12 #include "ppapi/thunk/ppb_output_protection_api.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 namespace proxy { 15 namespace proxy {
16 16
17 class OutputProtectionResource 17 class OutputProtectionResource
18 : public PluginResource, 18 : public PluginResource,
19 public ::ppapi::thunk::PPB_OutputProtection_API { 19 public ::ppapi::thunk::PPB_OutputProtection_API {
20 public: 20 public:
21 OutputProtectionResource(Connection connection, 21 OutputProtectionResource(Connection connection,
22 PP_Instance instance); 22 PP_Instance instance);
23 23
24 private: 24 private:
25 virtual ~OutputProtectionResource(); 25 ~OutputProtectionResource() override;
26 26
27 // PluginResource overrides. 27 // PluginResource overrides.
28 virtual thunk::PPB_OutputProtection_API* AsPPB_OutputProtection_API() 28 thunk::PPB_OutputProtection_API* AsPPB_OutputProtection_API() override;
29 override;
30 29
31 // PPB_OutputProtection_API implementation. 30 // PPB_OutputProtection_API implementation.
32 virtual int32_t QueryStatus( 31 int32_t QueryStatus(
33 uint32_t* link_mask, 32 uint32_t* link_mask,
34 uint32_t* protection_mask, 33 uint32_t* protection_mask,
35 const scoped_refptr<TrackedCallback>& callback) override; 34 const scoped_refptr<TrackedCallback>& callback) override;
36 virtual int32_t EnableProtection( 35 int32_t EnableProtection(
37 uint32_t desired_method_mask, 36 uint32_t desired_method_mask,
38 const scoped_refptr<TrackedCallback>& callback) override; 37 const scoped_refptr<TrackedCallback>& callback) override;
39 38
40 void OnPluginMsgQueryStatusReply( 39 void OnPluginMsgQueryStatusReply(
41 uint32_t* out_link_mask, 40 uint32_t* out_link_mask,
42 uint32_t* out_protection_mask, 41 uint32_t* out_protection_mask,
43 const ResourceMessageReplyParams& params, 42 const ResourceMessageReplyParams& params,
44 uint32_t link_mask, 43 uint32_t link_mask,
45 uint32_t protection_mask); 44 uint32_t protection_mask);
46 void OnPluginMsgEnableProtectionReply( 45 void OnPluginMsgEnableProtectionReply(
47 const ResourceMessageReplyParams& params); 46 const ResourceMessageReplyParams& params);
48 47
49 scoped_refptr<TrackedCallback> query_status_callback_; 48 scoped_refptr<TrackedCallback> query_status_callback_;
50 scoped_refptr<TrackedCallback> enable_protection_callback_; 49 scoped_refptr<TrackedCallback> enable_protection_callback_;
51 50
52 DISALLOW_COPY_AND_ASSIGN(OutputProtectionResource); 51 DISALLOW_COPY_AND_ASSIGN(OutputProtectionResource);
53 }; 52 };
54 53
55 } // namespace proxy 54 } // namespace proxy
56 } // namespace ppapi 55 } // namespace ppapi
57 56
58 #endif // PPAPI_PROXY_OUTPUT_PROTECTION_RESOURCE_H_ 57 #endif // PPAPI_PROXY_OUTPUT_PROTECTION_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/network_proxy_resource.h ('k') | ppapi/proxy/pdf_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698