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

Side by Side Diff: ppapi/proxy/flash_drm_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/flash_clipboard_resource.h ('k') | ppapi/proxy/flash_file_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_FLASH_DRM_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_FLASH_DRM_RESOURCE_H_
6 #define PPAPI_PROXY_FLASH_DRM_RESOURCE_H_ 6 #define PPAPI_PROXY_FLASH_DRM_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/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
11 #include "ppapi/thunk/ppb_flash_drm_api.h" 11 #include "ppapi/thunk/ppb_flash_drm_api.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 struct FileRefCreateInfo; 14 struct FileRefCreateInfo;
15 } 15 }
16 16
17 namespace ppapi { 17 namespace ppapi {
18 namespace proxy { 18 namespace proxy {
19 19
20 class FlashDRMResource 20 class FlashDRMResource
21 : public PluginResource, 21 : public PluginResource,
22 public thunk::PPB_Flash_DRM_API { 22 public thunk::PPB_Flash_DRM_API {
23 public: 23 public:
24 FlashDRMResource(Connection connection, 24 FlashDRMResource(Connection connection,
25 PP_Instance instance); 25 PP_Instance instance);
26 virtual ~FlashDRMResource(); 26 ~FlashDRMResource() override;
27 27
28 // Resource override. 28 // Resource override.
29 virtual thunk::PPB_Flash_DRM_API* AsPPB_Flash_DRM_API() override; 29 thunk::PPB_Flash_DRM_API* AsPPB_Flash_DRM_API() override;
30 30
31 // PPB_Flash_DRM_API implementation. 31 // PPB_Flash_DRM_API implementation.
32 virtual int32_t GetDeviceID(PP_Var* id, 32 int32_t GetDeviceID(PP_Var* id,
33 scoped_refptr<TrackedCallback> callback) override; 33 scoped_refptr<TrackedCallback> callback) override;
34 virtual PP_Bool GetHmonitor(int64_t* hmonitor) override; 34 PP_Bool GetHmonitor(int64_t* hmonitor) override;
35 virtual int32_t GetVoucherFile( 35 int32_t GetVoucherFile(
36 PP_Resource* file_ref, 36 PP_Resource* file_ref,
37 scoped_refptr<TrackedCallback> callback) override; 37 scoped_refptr<TrackedCallback> callback) override;
38 virtual int32_t MonitorIsExternal( 38 int32_t MonitorIsExternal(
39 PP_Bool* is_external, 39 PP_Bool* is_external,
40 scoped_refptr<TrackedCallback> callback) override; 40 scoped_refptr<TrackedCallback> callback) override;
41 41
42 private: 42 private:
43 void OnPluginMsgGetDeviceIDReply(PP_Var* dest, 43 void OnPluginMsgGetDeviceIDReply(PP_Var* dest,
44 scoped_refptr<TrackedCallback> callback, 44 scoped_refptr<TrackedCallback> callback,
45 const ResourceMessageReplyParams& params, 45 const ResourceMessageReplyParams& params,
46 const std::string& id); 46 const std::string& id);
47 void OnPluginMsgGetVoucherFileReply(PP_Resource* dest, 47 void OnPluginMsgGetVoucherFileReply(PP_Resource* dest,
48 scoped_refptr<TrackedCallback> callback, 48 scoped_refptr<TrackedCallback> callback,
49 const ResourceMessageReplyParams& params, 49 const ResourceMessageReplyParams& params,
50 const FileRefCreateInfo& file_info); 50 const FileRefCreateInfo& file_info);
51 void OnPluginMsgMonitorIsExternalReply( 51 void OnPluginMsgMonitorIsExternalReply(
52 PP_Bool* dest, 52 PP_Bool* dest,
53 scoped_refptr<TrackedCallback> callback, 53 scoped_refptr<TrackedCallback> callback,
54 const ResourceMessageReplyParams& params, 54 const ResourceMessageReplyParams& params,
55 PP_Bool is_external); 55 PP_Bool is_external);
56 56
57 DISALLOW_COPY_AND_ASSIGN(FlashDRMResource); 57 DISALLOW_COPY_AND_ASSIGN(FlashDRMResource);
58 }; 58 };
59 59
60 } // namespace proxy 60 } // namespace proxy
61 } // namespace ppapi 61 } // namespace ppapi
62 62
63 #endif // PPAPI_PROXY_FLASH_DRM_RESOURCE_H_ 63 #endif // PPAPI_PROXY_FLASH_DRM_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/flash_clipboard_resource.h ('k') | ppapi/proxy/flash_file_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698